Skip to content

Add tests#81

Open
ratijas wants to merge 7 commits intoTeamXiaolan:mainfrom
ratijas:work/ratijas/tests-net8.0
Open

Add tests#81
ratijas wants to merge 7 commits intoTeamXiaolan:mainfrom
ratijas:work/ratijas/tests-net8.0

Conversation

@ratijas
Copy link
Contributor

@ratijas ratijas commented Feb 8, 2026

DawnLib.Dusk: Group local project references together

DawnLib.SourceGen: Add README

DawnLib.SourceGen: Scaffold project for tests

dotnet new xunit --framework net8.0 -o ./tests/DawnLib.SourceGen.Tests
dotnet sln add ./tests/DawnLib.SourceGen.Tests
dotnet add ./tests/DawnLib.SourceGen.Tests reference ./DawnLib.SourceGen
dotnet add ./tests/DawnLib.SourceGen.Tests package Microsoft.CodeAnalysis.CSharp
dotnet add ./tests/DawnLib.SourceGen.Tests package Microsoft.CodeAnalysis.Analyzers
dotnet add ./tests/DawnLib.SourceGen.Tests package Verify.SourceGenerators
dotnet add ./tests/DawnLib.SourceGen.Tests package Verify.XUnit

DawnLib.SourceGen: Implement snapshot tests

DawnLib.SourceGen: Implement integration tests

Put a copy of library Unity.Netcode.Runtime.dll into DawnLib/deps and
run dotnet test.

CI: Run tests (except integration test)

DawnLib.SourceGen: Add Nuget integration tests

Check tests/DawnLib.SourceGen.NuGetIntegrationTests/README.md for details.

@ratijas ratijas force-pushed the work/ratijas/tests-net8.0 branch 4 times, most recently from e244881 to ce07ea2 Compare February 8, 2026 20:49
dotnet new xunit --framework net8.0 -o ./tests/DawnLib.SourceGen.Tests
dotnet sln add ./tests/DawnLib.SourceGen.Tests
dotnet add ./tests/DawnLib.SourceGen.Tests reference ./DawnLib.SourceGen
dotnet add ./tests/DawnLib.SourceGen.Tests package Microsoft.CodeAnalysis.CSharp
dotnet add ./tests/DawnLib.SourceGen.Tests package Microsoft.CodeAnalysis.Analyzers
dotnet add ./tests/DawnLib.SourceGen.Tests package Verify.SourceGenerators
dotnet add ./tests/DawnLib.SourceGen.Tests package Verify.XUnit
Put a copy of library Unity.Netcode.Runtime.dll into DawnLib/deps and
run `dotnet test`.
@ratijas ratijas force-pushed the work/ratijas/tests-net8.0 branch from ce07ea2 to 45116db Compare February 9, 2026 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant