Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Pipeline/Build.MutationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ partial class Build
{
"stryker-config": {
"project-info": {
"name": "github.com/aweXpect/aweXpect.Mockolate",
"name": "github.com/Testably/aweXpect.Mockolate",
"module": "{{project.Key.Name}}",
"version": "{{branchName}}"
},
Expand Down Expand Up @@ -124,7 +124,7 @@ partial class Build

string body = "## :alien: Mutation Results"
+ Environment.NewLine
+ $"[![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2FaweXpect%2FaweXpect.Mockolate%2Fpull/{prId}/merge)](https://dashboard.stryker-mutator.io/reports/github.com/aweXpect/aweXpect.Mockolate/pull/{prId}/merge)"
+ $"[![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2FTestably%2FaweXpect.Mockolate%2Fpull/{prId}/merge)](https://dashboard.stryker-mutator.io/reports/github.com/Testably/aweXpect.Mockolate/pull/{prId}/merge)"
+ Environment.NewLine
+ MutationCommentBody;
File.WriteAllText(ArtifactsDirectory / "PR_Comment.md", body);
Expand Down Expand Up @@ -158,7 +158,7 @@ partial class Build
client.DefaultRequestHeaders.Add("X-Api-Key", apiKey);
// https://stryker-mutator.io/docs/General/dashboard/#send-a-report-via-curl
await client.PutAsync(
$"https://dashboard.stryker-mutator.io/api/reports/github.com/aweXpect/aweXpect.Mockolate/{branchName}?module={project.Key.Name}",
$"https://dashboard.stryker-mutator.io/api/reports/github.com/Testably/aweXpect.Mockolate/{branchName}?module={project.Key.Name}",
new StringContent(reportComment, new MediaTypeHeaderValue("application/json")));
Comment thread
vbreuss marked this conversation as resolved.
}

Expand All @@ -173,7 +173,7 @@ await client.PutAsync(
Credentials tokenAuth = new(GithubToken);
gitHubClient.Credentials = tokenAuth;
IReadOnlyList<IssueComment> comments =
await gitHubClient.Issue.Comment.GetAllForIssue("aweXpect", "aweXpect.Mockolate", prId);
await gitHubClient.Issue.Comment.GetAllForIssue("Testably", "aweXpect.Mockolate", prId);
long? commentId = null;
Log.Information($"Found {comments.Count} comments");
foreach (IssueComment comment in comments)
Expand All @@ -188,12 +188,12 @@ await client.PutAsync(
if (commentId == null)
{
Log.Information($"Create comment:\n{body}");
await gitHubClient.Issue.Comment.Create("aweXpect", "aweXpect.Mockolate", prId, body);
await gitHubClient.Issue.Comment.Create("Testably", "aweXpect.Mockolate", prId, body);
}
else
{
Log.Information($"Update comment:\n{body}");
await gitHubClient.Issue.Comment.Update("aweXpect", "aweXpect.Mockolate", commentId.Value,
await gitHubClient.Issue.Comment.Update("Testably", "aweXpect.Mockolate", commentId.Value,
body);
}
}
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# aweXpect.Mockolate

[![Nuget](https://img.shields.io/nuget/v/aweXpect.Mockolate)](https://www.nuget.org/packages/aweXpect.Mockolate)
[![Build](https://github.com/aweXpect/aweXpect.Mockolate/actions/workflows/build.yml/badge.svg)](https://github.com/aweXpect/aweXpect.Mockolate/actions/workflows/build.yml)
[![Build](https://github.com/Testably/aweXpect.Mockolate/actions/workflows/build.yml/badge.svg)](https://github.com/Testably/aweXpect.Mockolate/actions/workflows/build.yml)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=Testably_aweXpect.Mockolate&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=Testably_aweXpect.Mockolate)
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=Testably_aweXpect.Mockolate&metric=coverage)](https://sonarcloud.io/summary/overall?id=Testably_aweXpect.Mockolate)
[![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2FaweXpect%2FaweXpect.Mockolate%2Fmain)](https://dashboard.stryker-mutator.io/reports/github.com/aweXpect/aweXpect.Mockolate/main)
[![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2FTestably%2FaweXpect.Mockolate%2Fmain)](https://dashboard.stryker-mutator.io/reports/github.com/Testably/aweXpect.Mockolate/main)

Expectations to verify interactions with mocks from [Mockolate](https://github.com/aweXpect/Mockolate).

Expand Down
Loading