Neotest adapter for dotnet tests
NOTE - This is a WIP project and will be under development over the coming months with additional features
- Please feel free to open an issue
neotest-dotnet requires makes a number of assumptions about your environment:
- Omnisharp-LSP is installed and active in the current buffer
- The
dotnet sdk
is installed and thedotnet
executable is on the users runtime path (future updates may allow customisation of the dotnet exe location) - The user is running tests using one of the supported test runners / frameworks (see support grid)
use({
"nvim-neotest/neotest",
requires = {
{
"Issafalcon/neotest-dotnet",
},
}
})
Plug 'https://github.com/nvim-neotest/neotest'
Plug 'https://github.com/Issafalcon/neotest-dotnet'
✔️ = Fully supported
〽️ = Partially Supported (functionality might behave unusually)
❌ = Unsupported (tested)
Runner / Framework | Unit Tests | Parameterized Unit Tests (e.g. Using TestCase attribute) |
Specflow |
---|---|---|---|
C# - NUnit | ✔️ | ❌ | ✔️ |
C# - XUnit | ✔️ | ✔️ | ✔️ |
C# - MSTest | ✔️ | ❌ | |
F# - NUnit | |||
F# - XUnit | |||
F# - MSTest |
- A tradeoff was made between being able to run parameterized tests and the specificity of the
dotnet --filter
command options. A more lenient 'contains' type filter is used in order for the adapter to be able to work with parameterized tests. Unfortunately, no amount of formatting would support specificFullyQualifiedName
filters for the dotnet test command for parameterized tests. - See the support guidance for feature and language support (regular users of F# needed!)