Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 2
Message 1 of 2

Is there any way to run NUnit?

Solved! Go to Solution.

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??

1 Reply
GitHub Partner
Message 2 of 2

Re: Is there any way to run NUnit?

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 }