Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests: More unit tests #310

Open
maximilien-noal opened this issue May 10, 2023 · 5 comments
Open

Tests: More unit tests #310

maximilien-noal opened this issue May 10, 2023 · 5 comments
Labels
good first issue Good for newcomers tests About unit or integration testing

Comments

@maximilien-noal
Copy link
Member

A lot of new code is not covered by unit tests. While it works since it's tested by try to make games run, it's harder without tests to detect regressions.

Also:
https://stryker-mutator.io/docs/stryker-net/introduction/
"Stryker.NET offers you mutation testing for your .NET Core and .NET Framework projects. It allows you to test your tests by temporarily inserting bugs. Stryker.NET is installed using NuGet."

This package could help a lot to ensure new unit tests are sharp enough.

@maximilien-noal maximilien-noal added the tests About unit or integration testing label May 10, 2023
@maximilien-noal
Copy link
Member Author

https://plugins.jetbrains.com/plugin/20747-unittestbot-net could really help with this !

Automated unit test generation tool for .NET code.
Generating ready-to-use test cases with method bodies and inputs
Maximizing branch coverage in regression suite while keeping the number of tests at minimum
Capable to find deeply hidden code defects and express them as tests
Applicable to LINQ syntax and complex generics
Supporting .NET Framework, .NET Core, .NET 5, and .NET 6
Powered by V# — the custom symbolic execution engine

Sadly my version of Rider is too new ATM.

@maximilien-noal maximilien-noal added the good first issue Good for newcomers label May 28, 2023
@maximilien-noal
Copy link
Member Author

Also related: unit test for the CPU for all instructions beyond the 8086:

#228

@maximilien-noal
Copy link
Member Author

For Code QA, maybe look into Jetbrains Qodana (github action) instead of GitHub's Code QL.

Also, once the coverage is good enough: https://github.com/simon-k/dotnet-code-coverage-badge

@maximilien-noal
Copy link
Member Author

For integration tests, this may be worth it someday:

https://github.com/LightBDD/LightBDD

instead of SpecFlow.NET (which is slow)

@maximilien-noal
Copy link
Member Author

For filesystem dependent parts: https://github.com/TestableIO/System.IO.Abstractions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers tests About unit or integration testing
Projects
None yet
Development

No branches or pull requests

1 participant