diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 937955d..f9f40b1 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -33,9 +33,9 @@ jobs:
- name: Build
run: dotnet build --no-restore
- name: Unit Tests
- run: dotnet test NEL.MESH.Tests.Unit/NEL.MESH.Tests.Unit.csproj --no-build --verbosity normal
+ run: dotnet test --project NEL.MESH.Tests.Unit/NEL.MESH.Tests.Unit.csproj --no-build --verbosity normal --ignore-exit-code 8
- name: Acceptance Tests
- run: dotnet test NEL.MESH.Tests.Acceptance/NEL.MESH.Tests.Acceptance.csproj --no-build --verbosity normal
+ run: dotnet test --project NEL.MESH.Tests.Acceptance/NEL.MESH.Tests.Acceptance.csproj --no-build --verbosity normal --ignore-exit-code 8
add_tag:
name: Add Tag and Create Release
runs-on: ubuntu-latest
diff --git a/NEL.MESH.Infrastructure/Services/ScriptGenerationService.cs b/NEL.MESH.Infrastructure/Services/ScriptGenerationService.cs
index 236a1e3..0120f95 100644
--- a/NEL.MESH.Infrastructure/Services/ScriptGenerationService.cs
+++ b/NEL.MESH.Infrastructure/Services/ScriptGenerationService.cs
@@ -83,16 +83,18 @@ public void GenerateBuildScript(string branchName, string projectName, string do
{
Name = "Unit Tests",
- Run = $"dotnet test {projectName}.Tests.Unit/" +
- $"{projectName}.Tests.Unit.csproj --no-build --verbosity normal"
+ Run = $"dotnet test --project {projectName}.Tests.Unit/" +
+ $"{projectName}.Tests.Unit.csproj " +
+ "--no-build --verbosity normal --ignore-exit-code 8"
},
new TestTask
{
Name = "Acceptance Tests",
- Run = $"dotnet test {projectName}.Tests.Acceptance/" +
- $"{projectName}.Tests.Acceptance.csproj --no-build --verbosity normal"
+ Run = $"dotnet test --project {projectName}.Tests.Acceptance/" +
+ $"{projectName}.Tests.Acceptance.csproj " +
+ "--no-build --verbosity normal --ignore-exit-code 8"
}
}
}
diff --git a/NEL.MESH.Tests.Acceptance/NEL.MESH.Tests.Acceptance.csproj b/NEL.MESH.Tests.Acceptance/NEL.MESH.Tests.Acceptance.csproj
index d9f4c3c..54d238c 100644
--- a/NEL.MESH.Tests.Acceptance/NEL.MESH.Tests.Acceptance.csproj
+++ b/NEL.MESH.Tests.Acceptance/NEL.MESH.Tests.Acceptance.csproj
@@ -14,16 +14,16 @@
-
+
-
+
runtime; build; native; contentfiles; analyzers; buildtransitive
all
-
+
runtime; build; native; contentfiles; analyzers; buildtransitive
all
@@ -31,7 +31,7 @@
runtime; build; native; contentfiles; analyzers; buildtransitive
all
-
+
diff --git a/NEL.MESH.Tests.Integration.Witness/NEL.MESH.Tests.Integration.Witness.csproj b/NEL.MESH.Tests.Integration.Witness/NEL.MESH.Tests.Integration.Witness.csproj
index 456817a..4470cc5 100644
--- a/NEL.MESH.Tests.Integration.Witness/NEL.MESH.Tests.Integration.Witness.csproj
+++ b/NEL.MESH.Tests.Integration.Witness/NEL.MESH.Tests.Integration.Witness.csproj
@@ -18,15 +18,15 @@
-
+
-
+
runtime; build; native; contentfiles; analyzers; buildtransitive
all
-
+
runtime; build; native; contentfiles; analyzers; buildtransitive
all
@@ -34,7 +34,7 @@
runtime; build; native; contentfiles; analyzers; buildtransitive
all
-
+
diff --git a/NEL.MESH.Tests.Integration/NEL.MESH.Tests.Integration.csproj b/NEL.MESH.Tests.Integration/NEL.MESH.Tests.Integration.csproj
index 431d0aa..b9035c7 100644
--- a/NEL.MESH.Tests.Integration/NEL.MESH.Tests.Integration.csproj
+++ b/NEL.MESH.Tests.Integration/NEL.MESH.Tests.Integration.csproj
@@ -18,15 +18,15 @@
-
+
-
+
runtime; build; native; contentfiles; analyzers; buildtransitive
all
-
+
runtime; build; native; contentfiles; analyzers; buildtransitive
all
@@ -34,7 +34,7 @@
runtime; build; native; contentfiles; analyzers; buildtransitive
all
-
+
diff --git a/NEL.MESH.Tests.Unit/NEL.MESH.Tests.Unit.csproj b/NEL.MESH.Tests.Unit/NEL.MESH.Tests.Unit.csproj
index 1d50b16..982aafe 100644
--- a/NEL.MESH.Tests.Unit/NEL.MESH.Tests.Unit.csproj
+++ b/NEL.MESH.Tests.Unit/NEL.MESH.Tests.Unit.csproj
@@ -14,15 +14,15 @@
-
+
-
+
runtime; build; native; contentfiles; analyzers; buildtransitive
all
-
+
runtime; build; native; contentfiles; analyzers; buildtransitive
all
@@ -30,7 +30,7 @@
runtime; build; native; contentfiles; analyzers; buildtransitive
all
-
+
diff --git a/global.json b/global.json
new file mode 100644
index 0000000..3140116
--- /dev/null
+++ b/global.json
@@ -0,0 +1,5 @@
+{
+ "test": {
+ "runner": "Microsoft.Testing.Platform"
+ }
+}