Skip to content

Commit 0bb6961

Browse files
committed
Revert "Change: Test Runner optimization"
This reverts commit 63f0832.
1 parent 455c866 commit 0bb6961

29 files changed

+635
-385
lines changed

.github/workflows/release.yml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,33 @@ jobs:
2525

2626
# Ensure that the tests must pass
2727
# The job will fail automatically if any test fails because `dotnet test` exits with a non-zero code
28-
- name: Run tests
28+
- name: Run tests - Extensions
2929
run: dotnet run -c Release --no-restore --no-build
3030
working-directory: "tests/Tests.CodeOfChaos.Extensions"
31+
- name: Run tests - Extensions.Analyzers
32+
run: dotnet run -c Release --no-restore --no-build
33+
working-directory: "tests/Tests.CodeOfChaos.Extensions.Analyzers"
34+
- name: Run tests - Extensions.AspNetCore
35+
run: dotnet run -c Release --no-restore --no-build
36+
working-directory: "tests/Tests.CodeOfChaos.Extensions.AspNetCore"
37+
- name: Run tests - Extensions.EntityFrameworkCore
38+
run: dotnet run -c Release --no-restore --no-build
39+
working-directory: "tests/Tests.CodeOfChaos.Extensions.EntityFrameworkCore"
40+
# - name: Run tests - Extensions.MicrosoftLogging
41+
# run: dotnet run -c Release --no-restore --no-build
42+
# working-directory: "tests/Tests.CodeOfChaos.Extensions.MicrosoftLogging"
43+
- name: Run tests - Extensions.Serilog
44+
run: dotnet run -c Release --no-restore --no-build
45+
working-directory: "tests/Tests.CodeOfChaos.Extensions.Serilog"
46+
- name: Run tests - Extensions.DependencyInjection
47+
run: dotnet run -c Release --no-restore --no-build
48+
working-directory: "tests/Tests.CodeOfChaos.Extensions.DependencyInjection"
49+
- name: Run tests - Extensions.DependencyInjection.Generators
50+
run: dotnet run -c Release --no-restore --no-build
51+
working-directory: "tests/Tests.CodeOfChaos.Extensions.DependencyInjection.Generators"
52+
- name: Run tests - Extensions.FluentValidation
53+
run: dotnet run -c Release --no-restore --no-build
54+
working-directory: "tests/Tests.CodeOfChaos.Extensions.FluentValidation"
3155

3256
- name: Publish to NuGet
3357
env:

CodeOfChaos.Extensions.sln

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,16 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tools.CodeOfChaos.Extension
1414
EndProject
1515
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CodeOfChaos.Extensions.EntityFrameworkCore", "src\CodeOfChaos.Extensions.EntityFrameworkCore\CodeOfChaos.Extensions.EntityFrameworkCore.csproj", "{411473A5-2921-4758-B78C-E66BCFFE6303}"
1616
EndProject
17+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests.CodeOfChaos.Extensions.EntityFrameworkCore", "tests\Tests.CodeOfChaos.Extensions.EntityFrameworkCore\Tests.CodeOfChaos.Extensions.EntityFrameworkCore.csproj", "{0A198DE2-E404-4BC4-9C6C-A4E1B4397463}"
18+
EndProject
1719
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CodeOfChaos.Extensions.AspNetCore", "src\CodeOfChaos.Extensions.AspNetCore\CodeOfChaos.Extensions.AspNetCore.csproj", "{53BD8191-6E89-4E6D-AD32-5613ED73C422}"
1820
EndProject
21+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests.CodeOfChaos.Extensions.AspNetCore", "tests\Tests.CodeOfChaos.Extensions.AspNetCore\Tests.CodeOfChaos.Extensions.AspNetCore.csproj", "{BC0AB42E-28A5-47FC-9017-1191C6899645}"
22+
EndProject
1923
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CodeOfChaos.Extensions.Serilog", "src\CodeOfChaos.Extensions.Serilog\CodeOfChaos.Extensions.Serilog.csproj", "{DCFDADB7-06BE-49BB-A71F-3124A48B0ECF}"
2024
EndProject
25+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests.CodeOfChaos.Extensions.Serilog", "tests\Tests.CodeOfChaos.Extensions.Serilog\Tests.CodeOfChaos.Extensions.Serilog.csproj", "{8670FBAC-E420-4DC6-82B1-AF0C5BF7F797}"
26+
EndProject
2127
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CodeOfChaos.Extensions.Analyzers", "src\CodeOfChaos.Extensions.Analyzers\CodeOfChaos.Extensions.Analyzers.csproj", "{E9BB7403-5167-46CA-BE84-F420CF28C910}"
2228
EndProject
2329
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "examples", "examples", "{C632855B-76D1-4D5E-9A0A-E631B5FE71A2}"
@@ -26,14 +32,22 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Examples.CodeOfChaos.Extens
2632
EndProject
2733
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Roslyn", "Roslyn", "{9F807E1D-D361-4CAB-8FD2-39B8A4F7AFFF}"
2834
EndProject
35+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests.CodeOfChaos.Extensions.DependencyInjection", "tests\Tests.CodeOfChaos.Extensions.DependencyInjection\Tests.CodeOfChaos.Extensions.DependencyInjection.csproj", "{A0C53C66-FFEC-42EF-A1CD-4E7396DB74FA}"
36+
EndProject
37+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests.CodeOfChaos.Extensions.DependencyInjection.Generators", "tests\Tests.CodeOfChaos.Extensions.DependencyInjection.Generators\Tests.CodeOfChaos.Extensions.DependencyInjection.Generators.csproj", "{77E466A0-F307-4452-8CBC-A541FC27F4BF}"
38+
EndProject
2939
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CodeOfChaos.Extensions.DependencyInjection", "src\CodeOfChaos.Extensions.DependencyInjection\CodeOfChaos.Extensions.DependencyInjection.csproj", "{9B1053FC-89D7-412D-AA24-618EFC97FDA4}"
3040
EndProject
3141
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CodeOfChaos.Extensions.DependencyInjection.Generators", "src\CodeOfChaos.Extensions.DependencyInjection.Generators\CodeOfChaos.Extensions.DependencyInjection.Generators.csproj", "{9FC9F294-BDB7-4479-B002-F0409E050A1E}"
3242
EndProject
43+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests.CodeOfChaos.Extensions.Analyzers", "tests\Tests.CodeOfChaos.Extensions.Analyzers\Tests.CodeOfChaos.Extensions.Analyzers.csproj", "{E1F41678-9171-42C9-8877-F326D878AE05}"
44+
EndProject
3345
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CodeOfChaos.Extensions.MicrosoftLogging", "src\CodeOfChaos.Extensions.MicrosoftLogging\CodeOfChaos.Extensions.MicrosoftLogging.csproj", "{76717F23-6ED9-4C3B-81AD-89C79B7D36BE}"
3446
EndProject
3547
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CodeOfChaos.Extensions.FluentValidation", "src\CodeOfChaos.Extensions.FluentValidation\CodeOfChaos.Extensions.FluentValidation.csproj", "{6A293FAD-9E0C-4747-B2DE-AE6504E4CB4F}"
3648
EndProject
49+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests.CodeOfChaos.Extensions.FluentValidation", "tests\Tests.CodeOfChaos.Extensions.FluentValidation\Tests.CodeOfChaos.Extensions.FluentValidation.csproj", "{0FFD99C9-3768-4E39-924D-D6847ABEC082}"
50+
EndProject
3751
Global
3852
GlobalSection(SolutionConfigurationPlatforms) = preSolution
3953
Debug|Any CPU = Debug|Any CPU
@@ -56,14 +70,26 @@ Global
5670
{411473A5-2921-4758-B78C-E66BCFFE6303}.Debug|Any CPU.Build.0 = Debug|Any CPU
5771
{411473A5-2921-4758-B78C-E66BCFFE6303}.Release|Any CPU.ActiveCfg = Release|Any CPU
5872
{411473A5-2921-4758-B78C-E66BCFFE6303}.Release|Any CPU.Build.0 = Release|Any CPU
73+
{0A198DE2-E404-4BC4-9C6C-A4E1B4397463}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
74+
{0A198DE2-E404-4BC4-9C6C-A4E1B4397463}.Debug|Any CPU.Build.0 = Debug|Any CPU
75+
{0A198DE2-E404-4BC4-9C6C-A4E1B4397463}.Release|Any CPU.ActiveCfg = Release|Any CPU
76+
{0A198DE2-E404-4BC4-9C6C-A4E1B4397463}.Release|Any CPU.Build.0 = Release|Any CPU
5977
{53BD8191-6E89-4E6D-AD32-5613ED73C422}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
6078
{53BD8191-6E89-4E6D-AD32-5613ED73C422}.Debug|Any CPU.Build.0 = Debug|Any CPU
6179
{53BD8191-6E89-4E6D-AD32-5613ED73C422}.Release|Any CPU.ActiveCfg = Release|Any CPU
6280
{53BD8191-6E89-4E6D-AD32-5613ED73C422}.Release|Any CPU.Build.0 = Release|Any CPU
81+
{BC0AB42E-28A5-47FC-9017-1191C6899645}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
82+
{BC0AB42E-28A5-47FC-9017-1191C6899645}.Debug|Any CPU.Build.0 = Debug|Any CPU
83+
{BC0AB42E-28A5-47FC-9017-1191C6899645}.Release|Any CPU.ActiveCfg = Release|Any CPU
84+
{BC0AB42E-28A5-47FC-9017-1191C6899645}.Release|Any CPU.Build.0 = Release|Any CPU
6385
{DCFDADB7-06BE-49BB-A71F-3124A48B0ECF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
6486
{DCFDADB7-06BE-49BB-A71F-3124A48B0ECF}.Debug|Any CPU.Build.0 = Debug|Any CPU
6587
{DCFDADB7-06BE-49BB-A71F-3124A48B0ECF}.Release|Any CPU.ActiveCfg = Release|Any CPU
6688
{DCFDADB7-06BE-49BB-A71F-3124A48B0ECF}.Release|Any CPU.Build.0 = Release|Any CPU
89+
{8670FBAC-E420-4DC6-82B1-AF0C5BF7F797}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
90+
{8670FBAC-E420-4DC6-82B1-AF0C5BF7F797}.Debug|Any CPU.Build.0 = Debug|Any CPU
91+
{8670FBAC-E420-4DC6-82B1-AF0C5BF7F797}.Release|Any CPU.ActiveCfg = Release|Any CPU
92+
{8670FBAC-E420-4DC6-82B1-AF0C5BF7F797}.Release|Any CPU.Build.0 = Release|Any CPU
6793
{E9BB7403-5167-46CA-BE84-F420CF28C910}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
6894
{E9BB7403-5167-46CA-BE84-F420CF28C910}.Debug|Any CPU.Build.0 = Debug|Any CPU
6995
{E9BB7403-5167-46CA-BE84-F420CF28C910}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -72,6 +98,14 @@ Global
7298
{50072DFE-34A3-4E93-A2A1-02CDDCA66CBE}.Debug|Any CPU.Build.0 = Debug|Any CPU
7399
{50072DFE-34A3-4E93-A2A1-02CDDCA66CBE}.Release|Any CPU.ActiveCfg = Release|Any CPU
74100
{50072DFE-34A3-4E93-A2A1-02CDDCA66CBE}.Release|Any CPU.Build.0 = Release|Any CPU
101+
{A0C53C66-FFEC-42EF-A1CD-4E7396DB74FA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
102+
{A0C53C66-FFEC-42EF-A1CD-4E7396DB74FA}.Debug|Any CPU.Build.0 = Debug|Any CPU
103+
{A0C53C66-FFEC-42EF-A1CD-4E7396DB74FA}.Release|Any CPU.ActiveCfg = Release|Any CPU
104+
{A0C53C66-FFEC-42EF-A1CD-4E7396DB74FA}.Release|Any CPU.Build.0 = Release|Any CPU
105+
{77E466A0-F307-4452-8CBC-A541FC27F4BF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
106+
{77E466A0-F307-4452-8CBC-A541FC27F4BF}.Debug|Any CPU.Build.0 = Debug|Any CPU
107+
{77E466A0-F307-4452-8CBC-A541FC27F4BF}.Release|Any CPU.ActiveCfg = Release|Any CPU
108+
{77E466A0-F307-4452-8CBC-A541FC27F4BF}.Release|Any CPU.Build.0 = Release|Any CPU
75109
{9B1053FC-89D7-412D-AA24-618EFC97FDA4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
76110
{9B1053FC-89D7-412D-AA24-618EFC97FDA4}.Debug|Any CPU.Build.0 = Debug|Any CPU
77111
{9B1053FC-89D7-412D-AA24-618EFC97FDA4}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -80,6 +114,10 @@ Global
80114
{9FC9F294-BDB7-4479-B002-F0409E050A1E}.Debug|Any CPU.Build.0 = Debug|Any CPU
81115
{9FC9F294-BDB7-4479-B002-F0409E050A1E}.Release|Any CPU.ActiveCfg = Release|Any CPU
82116
{9FC9F294-BDB7-4479-B002-F0409E050A1E}.Release|Any CPU.Build.0 = Release|Any CPU
117+
{E1F41678-9171-42C9-8877-F326D878AE05}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
118+
{E1F41678-9171-42C9-8877-F326D878AE05}.Debug|Any CPU.Build.0 = Debug|Any CPU
119+
{E1F41678-9171-42C9-8877-F326D878AE05}.Release|Any CPU.ActiveCfg = Release|Any CPU
120+
{E1F41678-9171-42C9-8877-F326D878AE05}.Release|Any CPU.Build.0 = Release|Any CPU
83121
{76717F23-6ED9-4C3B-81AD-89C79B7D36BE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
84122
{76717F23-6ED9-4C3B-81AD-89C79B7D36BE}.Debug|Any CPU.Build.0 = Debug|Any CPU
85123
{76717F23-6ED9-4C3B-81AD-89C79B7D36BE}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -88,20 +126,31 @@ Global
88126
{6A293FAD-9E0C-4747-B2DE-AE6504E4CB4F}.Debug|Any CPU.Build.0 = Debug|Any CPU
89127
{6A293FAD-9E0C-4747-B2DE-AE6504E4CB4F}.Release|Any CPU.ActiveCfg = Release|Any CPU
90128
{6A293FAD-9E0C-4747-B2DE-AE6504E4CB4F}.Release|Any CPU.Build.0 = Release|Any CPU
129+
{0FFD99C9-3768-4E39-924D-D6847ABEC082}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
130+
{0FFD99C9-3768-4E39-924D-D6847ABEC082}.Debug|Any CPU.Build.0 = Debug|Any CPU
131+
{0FFD99C9-3768-4E39-924D-D6847ABEC082}.Release|Any CPU.ActiveCfg = Release|Any CPU
132+
{0FFD99C9-3768-4E39-924D-D6847ABEC082}.Release|Any CPU.Build.0 = Release|Any CPU
91133
EndGlobalSection
92134
GlobalSection(NestedProjects) = preSolution
93135
{26284571-0E09-4BAF-8C2B-DF87DCC1BA0B} = {8DD280D4-1E14-4D5E-AFE6-58DD8F079DCC}
94136
{64B26DED-68C3-47FF-B409-1C8FAD4F9176} = {197E72AD-DEAB-4350-AFC3-A3BB38720BF5}
95137
{ADEADD97-0AFA-4D9E-970B-9FFB932949B3} = {AF1A203C-6EF1-440E-BB3C-55B1DBFE9C19}
96138
{411473A5-2921-4758-B78C-E66BCFFE6303} = {197E72AD-DEAB-4350-AFC3-A3BB38720BF5}
139+
{0A198DE2-E404-4BC4-9C6C-A4E1B4397463} = {8DD280D4-1E14-4D5E-AFE6-58DD8F079DCC}
97140
{53BD8191-6E89-4E6D-AD32-5613ED73C422} = {197E72AD-DEAB-4350-AFC3-A3BB38720BF5}
141+
{BC0AB42E-28A5-47FC-9017-1191C6899645} = {8DD280D4-1E14-4D5E-AFE6-58DD8F079DCC}
98142
{DCFDADB7-06BE-49BB-A71F-3124A48B0ECF} = {197E72AD-DEAB-4350-AFC3-A3BB38720BF5}
143+
{8670FBAC-E420-4DC6-82B1-AF0C5BF7F797} = {8DD280D4-1E14-4D5E-AFE6-58DD8F079DCC}
99144
{50072DFE-34A3-4E93-A2A1-02CDDCA66CBE} = {C632855B-76D1-4D5E-9A0A-E631B5FE71A2}
100145
{9F807E1D-D361-4CAB-8FD2-39B8A4F7AFFF} = {197E72AD-DEAB-4350-AFC3-A3BB38720BF5}
101146
{E9BB7403-5167-46CA-BE84-F420CF28C910} = {9F807E1D-D361-4CAB-8FD2-39B8A4F7AFFF}
147+
{A0C53C66-FFEC-42EF-A1CD-4E7396DB74FA} = {8DD280D4-1E14-4D5E-AFE6-58DD8F079DCC}
148+
{77E466A0-F307-4452-8CBC-A541FC27F4BF} = {8DD280D4-1E14-4D5E-AFE6-58DD8F079DCC}
102149
{9B1053FC-89D7-412D-AA24-618EFC97FDA4} = {197E72AD-DEAB-4350-AFC3-A3BB38720BF5}
103150
{9FC9F294-BDB7-4479-B002-F0409E050A1E} = {9F807E1D-D361-4CAB-8FD2-39B8A4F7AFFF}
151+
{E1F41678-9171-42C9-8877-F326D878AE05} = {8DD280D4-1E14-4D5E-AFE6-58DD8F079DCC}
104152
{76717F23-6ED9-4C3B-81AD-89C79B7D36BE} = {197E72AD-DEAB-4350-AFC3-A3BB38720BF5}
105153
{6A293FAD-9E0C-4747-B2DE-AE6504E4CB4F} = {197E72AD-DEAB-4350-AFC3-A3BB38720BF5}
154+
{0FFD99C9-3768-4E39-924D-D6847ABEC082} = {8DD280D4-1E14-4D5E-AFE6-58DD8F079DCC}
106155
EndGlobalSection
107156
EndGlobal
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"profiles": {
3+
"Test": {
4+
"commandName": "Project"
5+
}
6+
}
7+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net9.0</TargetFramework>
5+
<ImplicitUsings>enable</ImplicitUsings>
6+
<Nullable>enable</Nullable>
7+
8+
<IsPackable>false</IsPackable>
9+
<IsTestProject>true</IsTestProject>
10+
</PropertyGroup>
11+
12+
<ItemGroup>
13+
<PackageReference Include="CodeOfChaos.Testing.TUnit" Version="0.8.1" />
14+
<PackageReference Include="TUnit" Version="0.18.26" />
15+
</ItemGroup>
16+
17+
<ItemGroup>
18+
<ProjectReference Include="..\..\src\CodeOfChaos.Extensions.Analyzers\CodeOfChaos.Extensions.Analyzers.csproj" />
19+
</ItemGroup>
20+
21+
</Project>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"profiles": {
3+
"Test": {
4+
"commandName": "Project"
5+
}
6+
}
7+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net9.0</TargetFramework>
5+
<LangVersion>latest</LangVersion>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
<Nullable>enable</Nullable>
8+
9+
<IsPackable>false</IsPackable>
10+
<IsTestProject>true</IsTestProject>
11+
</PropertyGroup>
12+
13+
<ItemGroup>
14+
<PackageReference Include="JetBrains.Annotations" Version="2024.3.0"/>
15+
<PackageReference Include="Moq" Version="4.20.72"/>
16+
<PackageReference Include="TUnit" Version="0.18.26" />
17+
<PackageReference Include="Bogus" Version="35.6.2" />
18+
</ItemGroup>
19+
20+
<ItemGroup>
21+
<ProjectReference Include="..\..\src\CodeOfChaos.Extensions.AspNetCore\CodeOfChaos.Extensions.AspNetCore.csproj"/>
22+
</ItemGroup>
23+
24+
</Project>

0 commit comments

Comments
 (0)