diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index ab8e20af..8ffcba82 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -190,7 +190,7 @@ jobs:
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
runs-on: macos-latest
environment: production
- needs: [ publish-test-results, build-pages, benchmarks, static-code-analysis, pack, mutation-tests ]
+ needs: [ publish-test-results, benchmarks, static-code-analysis, pack, mutation-tests ]
permissions:
contents: write
steps:
@@ -257,18 +257,3 @@ jobs:
state: released
skip-label: |
state: released
-
- build-pages:
- name: Update Pages
- runs-on: ubuntu-latest
- needs: [ benchmarks ]
- steps:
- - name: Trigger pages update in aweXpect Repo
- run: |
- curl -L \
- -X POST \
- -H "Accept: application/vnd.github+json" \
- -H "Authorization: Bearer ${{ secrets.REPOSITORY_DISPATCH }}" \
- -H "X-GitHub-Api-Version: 2022-11-28" \
- https://api.github.com/repos/aweXpect/aweXpect/dispatches \
- -d "{\"event_type\": \"extension-documentation-updated-event\"}"
diff --git a/Mockolate.slnx b/Mockolate.slnx
index 0bffe03c..c31f9efa 100644
--- a/Mockolate.slnx
+++ b/Mockolate.slnx
@@ -1,82 +1,83 @@
-
+
-
+
-
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
-
+
+
+
-
+
-
+
-
-
-
-
+
+
+
+
diff --git a/Pipeline/Build.Benchmarks.cs b/Pipeline/Build.Benchmarks.cs
index 0635e2e3..852e5e19 100644
--- a/Pipeline/Build.Benchmarks.cs
+++ b/Pipeline/Build.Benchmarks.cs
@@ -97,7 +97,7 @@ partial class Build
Credentials tokenAuth = new(GithubToken);
gitHubClient.Credentials = tokenAuth;
IReadOnlyList comments =
- await gitHubClient.Issue.Comment.GetAllForIssue("aweXpect", "Mockolate", prId);
+ await gitHubClient.Issue.Comment.GetAllForIssue(BuildExtensions.Owner, BuildExtensions.Repo, prId);
long? commentId = null;
Log.Information($"Found {comments.Count} comments");
foreach (IssueComment comment in comments)
@@ -112,12 +112,12 @@ partial class Build
if (commentId == null)
{
Log.Information($"Create comment:\n{body}");
- await gitHubClient.Issue.Comment.Create("aweXpect", "Mockolate", prId, body);
+ await gitHubClient.Issue.Comment.Create(BuildExtensions.Owner, BuildExtensions.Repo, prId, body);
}
else
{
Log.Information($"Update comment:\n{body}");
- await gitHubClient.Issue.Comment.Update("aweXpect", "Mockolate", commentId.Value, body);
+ await gitHubClient.Issue.Comment.Update(BuildExtensions.Owner, BuildExtensions.Repo, commentId.Value, body);
}
}
});
diff --git a/Pipeline/Build.MutationTests.cs b/Pipeline/Build.MutationTests.cs
index d914da24..e2545ebb 100644
--- a/Pipeline/Build.MutationTests.cs
+++ b/Pipeline/Build.MutationTests.cs
@@ -71,7 +71,7 @@ partial class Build
{
"stryker-config": {
"project-info": {
- "name": "github.com/aweXpect/Mockolate",
+ "name": "github.com/{{BuildExtensions.Owner}}/{{BuildExtensions.Repo}}",
"module": "{{project.Key.Name}}",
"version": "{{branchName}}"
},
@@ -128,7 +128,7 @@ partial class Build
string body = "## :alien: Mutation Results"
+ Environment.NewLine
- + $"[](https://dashboard.stryker-mutator.io/reports/github.com/aweXpect/Mockolate/pull/{prId}/merge)"
+ + $"[](https://dashboard.stryker-mutator.io/reports/github.com/{BuildExtensions.Owner}/{BuildExtensions.Repo}/pull/{prId}/merge)"
+ Environment.NewLine
+ MutationCommentBody;
File.WriteAllText(ArtifactsDirectory / "PR_Comment.md", body);
@@ -165,7 +165,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/Mockolate/{branchName}?module={project.Key.Name}",
+ $"https://dashboard.stryker-mutator.io/api/reports/github.com/{BuildExtensions.Owner}/{BuildExtensions.Repo}/{branchName}?module={project.Key.Name}",
new StringContent(reportComment, new MediaTypeHeaderValue("application/json")));
}
@@ -180,7 +180,7 @@ await client.PutAsync(
Credentials tokenAuth = new(GithubToken);
gitHubClient.Credentials = tokenAuth;
IReadOnlyList comments =
- await gitHubClient.Issue.Comment.GetAllForIssue("aweXpect", "Mockolate", prId);
+ await gitHubClient.Issue.Comment.GetAllForIssue(BuildExtensions.Owner, BuildExtensions.Repo, prId);
long? commentId = null;
Log.Information($"Found {comments.Count} comments");
foreach (IssueComment comment in comments)
@@ -195,12 +195,12 @@ await client.PutAsync(
if (commentId == null)
{
Log.Information($"Create comment:\n{body}");
- await gitHubClient.Issue.Comment.Create("aweXpect", "Mockolate", prId, body);
+ await gitHubClient.Issue.Comment.Create(BuildExtensions.Owner, BuildExtensions.Repo, prId, body);
}
else
{
Log.Information($"Update comment:\n{body}");
- await gitHubClient.Issue.Comment.Update("aweXpect", "Mockolate", commentId.Value, body);
+ await gitHubClient.Issue.Comment.Update(BuildExtensions.Owner, BuildExtensions.Repo, commentId.Value, body);
}
}
}
diff --git a/Pipeline/Build.Pack.cs b/Pipeline/Build.Pack.cs
index f8ab7230..29c18c63 100644
--- a/Pipeline/Build.Pack.cs
+++ b/Pipeline/Build.Pack.cs
@@ -29,7 +29,7 @@ partial class Build
string[] lines = File.ReadAllLines(Solution.Directory / "README.md");
sb.AppendLine(lines.First());
sb.AppendLine(
- $"[](https://github.com/aweXpect/Mockolate/releases/tag/v{version})");
+ $"[](https://github.com/{BuildExtensions.Owner}/{BuildExtensions.Repo}/releases/tag/v{version})");
bool foundBadge = false;
bool addedImage = false;
foreach (string line in lines.Skip(1))
@@ -40,7 +40,7 @@ partial class Build
continue;
}
- if (line.StartsWith("[ ||
+ if (line.StartsWith($"[ ||
line.StartsWith("[)
{
foundBadge = true;
@@ -65,7 +65,7 @@ partial class Build
if (foundBadge && string.IsNullOrWhiteSpace(line) && !addedImage)
{
sb.AppendLine();
- sb.AppendLine(" ");
+ sb.AppendLine($" ");
addedImage = true;
}
diff --git a/Pipeline/BuildExtensions.cs b/Pipeline/BuildExtensions.cs
index 70f6a2a0..cfc0e060 100644
--- a/Pipeline/BuildExtensions.cs
+++ b/Pipeline/BuildExtensions.cs
@@ -15,7 +15,9 @@ namespace Build;
public static class BuildExtensions
{
- private const string RepositoryApiBaseUrl = "https://api.github.com/repos/aweXpect/Mockolate";
+ internal const string Owner = "Testably";
+ internal const string Repo = "Mockolate";
+ private const string RepositoryApiBaseUrl = "https://api.github.com/repos/" + Owner + "/" + Repo;
public static SonarScannerBeginSettings SetPullRequestOrBranchName(
this SonarScannerBeginSettings settings,
diff --git a/README.md b/README.md
index 0770a393..79484b42 100644
--- a/README.md
+++ b/README.md
@@ -3,10 +3,10 @@
[](https://www.nuget.org/packages/Mockolate)
-[](https://github.com/aweXpect/Mockolate/actions/workflows/build.yml)
+[](https://github.com/Testably/Mockolate/actions/workflows/build.yml)
[](https://sonarcloud.io/summary/new_code?id=aweXpect_Mockolate)
[](https://sonarcloud.io/summary/overall?id=aweXpect_Mockolate)
-[](https://dashboard.stryker-mutator.io/reports/github.com/aweXpect/Mockolate/main)
+[](https://dashboard.stryker-mutator.io/reports/github.com/Testably/Mockolate/main)
**Mockolate** is a modern, strongly-typed, AOT-compatible mocking library for .NET, powered by source generators.
It enables fast, compile-time validated mocking with .NET Standard 2.0, .NET 8, .NET 10 and .NET Framework 4.8.
@@ -29,7 +29,7 @@ It enables fast, compile-time validated mocking with .NET Standard 2.0, .NET 8,
For side-by-side setup, usage, and verification syntax against Moq, NSubstitute, and FakeItEasy, see the
[full code comparison](https://awexpect.com/docs/mockolate/comparison).
-Already on Moq or NSubstitute? The companion package [`Mockolate.Migration`](https://github.com/aweXpect/Mockolate.Migration)
+Already on Moq or NSubstitute? The companion package [`Mockolate.Migration`](https://github.com/Testably/Mockolate.Migration)
ships analyzers and code fixers that translate common Moq and NSubstitute patterns to Mockolate syntax in-place: point it
at an existing test project and apply the suggested fixes.
diff --git a/Source/Directory.Build.props b/Source/Directory.Build.props
index 2b2ddb24..621f012d 100644
--- a/Source/Directory.Build.props
+++ b/Source/Directory.Build.props
@@ -7,7 +7,7 @@
Mockolate
A modern, strongly-typed, AOT-compatible mocking library for .NET, powered by source generators.
Copyright (c) 2025 - $([System.DateTime]::Now.ToString('yyyy')) Valentin Breuß
- https://github.com/aweXpect/Mockolate.git
+ https://github.com/Testably/Mockolate.git
git
MIT
Docs/logo_256x256.png
diff --git a/Tests/Mockolate.Api.Tests/Expected/Mockolate_net10.0.txt b/Tests/Mockolate.Api.Tests/Expected/Mockolate_net10.0.txt
index 3c90f6e0..08e54d52 100644
--- a/Tests/Mockolate.Api.Tests/Expected/Mockolate_net10.0.txt
+++ b/Tests/Mockolate.Api.Tests/Expected/Mockolate_net10.0.txt
@@ -1,6 +1,6 @@
[assembly: System.Reflection.AssemblyMetadata("IsAotCompatible", "True")]
[assembly: System.Reflection.AssemblyMetadata("IsTrimmable", "True")]
-[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/aweXpect/Mockolate.git")]
+[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/Testably/Mockolate.git")]
[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(@"Mockolate.Internal.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100917b2e28a0dcd1de99a208f70383c300caa03729b1f9cdad97cb11a127f822aa36aad08225cc24312de1fadf3aeafc7ab6c2c4b588d5e88c2b61f0a56e02df1b6aa11d0c3e4ee6675f24b20dbd75ee4fc229f82b0eeeafe1a5bc376d5e5f9a5c4320267921d9a962cc5f58ccc94e7127db3119bafedfb76fd3a7b1f2d22155ac")]
[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v10.0", FrameworkDisplayName=".NET 10.0")]
namespace Mockolate.Behavior
diff --git a/Tests/Mockolate.Api.Tests/Expected/Mockolate_net8.0.txt b/Tests/Mockolate.Api.Tests/Expected/Mockolate_net8.0.txt
index 6337ffb5..98735ed8 100644
--- a/Tests/Mockolate.Api.Tests/Expected/Mockolate_net8.0.txt
+++ b/Tests/Mockolate.Api.Tests/Expected/Mockolate_net8.0.txt
@@ -1,5 +1,5 @@
[assembly: System.Reflection.AssemblyMetadata("IsTrimmable", "True")]
-[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/aweXpect/Mockolate.git")]
+[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/Testably/Mockolate.git")]
[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(@"Mockolate.Internal.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100917b2e28a0dcd1de99a208f70383c300caa03729b1f9cdad97cb11a127f822aa36aad08225cc24312de1fadf3aeafc7ab6c2c4b588d5e88c2b61f0a56e02df1b6aa11d0c3e4ee6675f24b20dbd75ee4fc229f82b0eeeafe1a5bc376d5e5f9a5c4320267921d9a962cc5f58ccc94e7127db3119bafedfb76fd3a7b1f2d22155ac")]
[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v8.0", FrameworkDisplayName=".NET 8.0")]
namespace Mockolate.Behavior
diff --git a/Tests/Mockolate.Api.Tests/Expected/Mockolate_netstandard2.0.txt b/Tests/Mockolate.Api.Tests/Expected/Mockolate_netstandard2.0.txt
index 5e4e3a1a..f8e1ac4d 100644
--- a/Tests/Mockolate.Api.Tests/Expected/Mockolate_netstandard2.0.txt
+++ b/Tests/Mockolate.Api.Tests/Expected/Mockolate_netstandard2.0.txt
@@ -1,4 +1,4 @@
-[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/aweXpect/Mockolate.git")]
+[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/Testably/Mockolate.git")]
[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(@"Mockolate.Internal.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100917b2e28a0dcd1de99a208f70383c300caa03729b1f9cdad97cb11a127f822aa36aad08225cc24312de1fadf3aeafc7ab6c2c4b588d5e88c2b61f0a56e02df1b6aa11d0c3e4ee6675f24b20dbd75ee4fc229f82b0eeeafe1a5bc376d5e5f9a5c4320267921d9a962cc5f58ccc94e7127db3119bafedfb76fd3a7b1f2d22155ac")]
[assembly: System.Runtime.Versioning.TargetFramework(".NETStandard,Version=v2.0", FrameworkDisplayName=".NET Standard 2.0")]
namespace Mockolate.Behavior