Is there any way to run NUnit?

I have a large number of .Net Framework apps with NUnit tests.

I have a test solution with tests compiling – is it possible to run the tests?

I guess I could inlude the packages forder with the console runner but it is there a neater way??

Hi @dgwynnjones ,

You can get the full path of test project files and execute test then.

Code sample as below, more details here. It works on my side, hope it helps!

Get-ChildItem "LegacyProjTests" -recurse | where {$_.extension -eq ".csproj"} | % { dotnet test $_.FullName }

Thanks.

1 Like