Skip to content
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
with:
cache: false
- name: Run tests
run: dotnet test -c Debug
run: mise run test
publish-docs:
name: Publish documentation
runs-on: ubuntu-latest
Expand Down
22 changes: 21 additions & 1 deletion ArchUnit.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 18
VisualStudioVersion = 18.7.11925.98 stable
VisualStudioVersion = 18.7.11925.98
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestAssembly", "TestAssembly\TestAssembly.csproj", "{7DEF5F34-AB86-457B-819D-5E7387B3FF87}"
EndProject
Expand Down Expand Up @@ -67,10 +67,28 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SlicesTestAssembly", "TestA
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{A780B3D6-C525-4270-ABF1-63BA65EA1593}"
ProjectSection(SolutionItems) = preProject
ArchUnitNET.mtp.slnf = ArchUnitNET.mtp.slnf
ArchUnitNET.vstest.slnf = ArchUnitNET.vstest.slnf
README.md = README.md
renovate.json = renovate.json
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".github", ".github", "{38699834-8620-4254-AB98-C19586AD3952}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{5B3E7A23-F91B-4506-9879-B8CAD13F4AE0}"
ProjectSection(SolutionItems) = preProject
.github\workflows\build.yaml = .github\workflows\build.yaml
.github\workflows\codeql.yml = .github\workflows\codeql.yml
.github\workflows\label-issues.yaml = .github\workflows\label-issues.yaml
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ISSUE_TEMPLATE", "ISSUE_TEMPLATE", "{84BF2DBC-C8FA-46CE-9419-1CE4E3C4D175}"
ProjectSection(SolutionItems) = preProject
.github\ISSUE_TEMPLATE\bug_report.yml = .github\ISSUE_TEMPLATE\bug_report.yml
.github\ISSUE_TEMPLATE\config.yml = .github\ISSUE_TEMPLATE\config.yml
.github\ISSUE_TEMPLATE\feature_request.yml = .github\ISSUE_TEMPLATE\feature_request.yml
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -459,6 +477,8 @@ Global
{1D0187EB-9D04-4CF3-AE63-0C0E97FCB49C} = {B1191F18-91CB-4387-B775-A5EB64D3AC30}
{2C04EB93-5AE0-474C-B328-145A734A5E2B} = {B1191F18-91CB-4387-B775-A5EB64D3AC30}
{E421FA12-BBB9-4A8B-BD29-8757836079A5} = {B1191F18-91CB-4387-B775-A5EB64D3AC30}
{5B3E7A23-F91B-4506-9879-B8CAD13F4AE0} = {38699834-8620-4254-AB98-C19586AD3952}
{84BF2DBC-C8FA-46CE-9419-1CE4E3C4D175} = {38699834-8620-4254-AB98-C19586AD3952}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {D1A8274D-32D6-44DB-9BB3-1A5B273709AF}
Expand Down
2 changes: 1 addition & 1 deletion ArchUnitNET.TUnitTests/ArchUnitNET.TUnitTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />
<PackageReference Include="TUnit" Version="0.61.39" />
<PackageReference Include="TUnit" Version="0.90.45" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\ArchUnitNET.TUnit\ArchUnitNET.TUnit.csproj" />
Expand Down
10 changes: 10 additions & 0 deletions ArchUnitNET.TUnitTests/global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"sdk": {
"version": "10.0.400",
"rollForward": "latestMajor",
"allowPrerelease": true
},
"test": {
"runner": "Microsoft.Testing.Platform"
}
}
8 changes: 8 additions & 0 deletions ArchUnitNET.mtp.slnf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"solution": {
"path": "ArchUnit.sln",
"projects": [
"ArchUnitNET.TUnitTests\\ArchUnitNET.TUnitTests.csproj"
]
}
}
15 changes: 15 additions & 0 deletions ArchUnitNET.vstest.slnf
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"solution": {
"path": "ArchUnit.sln",
"projects": [
"ArchUnitNET.NUnitTests\\ArchUnitNET.NUnitTests.csproj",
"ArchUnitNETTests\\ArchUnitNETTests.csproj",
"ArchUnitNET.MSTestV3Tests\\ArchUnitNET.MSTestV3Tests.csproj",
"ArchUnitNET.xUnitV3Tests\\ArchUnitNET.xUnitV3Tests.csproj",
"ArchUnitNET.MSTestV4Tests\\ArchUnitNET.MSTestV4Tests.csproj",
"ExampleTest\\ExampleTest.csproj",
"ArchUnitNET.MSTestV2Tests\\ArchUnitNET.MSTestV2Tests.csproj",
"ArchUnitNET.xUnitTests\\ArchUnitNET.xUnitTests.csproj"
]
}
}
13 changes: 13 additions & 0 deletions mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,16 @@ description = "Restore local .NET tools (csharpier, verify.tool, reportgenerator
sources = [".config/dotnet-tools.json"]
run = "dotnet tool restore"
auto = true

[tasks."test:vstest"]
description = "Run all VSTest-based test projects"
run = "dotnet test -c Debug ArchUnitNET.vstest.slnf"

[tasks."test:mtp"]
description = "Run the TUnit (MTP) test project"
dir = "ArchUnitNET.TUnitTests"
run = "dotnet test -c Debug ../ArchUnitNET.mtp.slnf"

[tasks.test]
description = "Run all tests (VSTest and MTP in parallel)"
depends = ["test:vstest", "test:mtp"]
Loading