Skip to content

Is there any way to run NUnit? #25059

Answered by weide-zhou
DGwynnJones asked this question in Actions
Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Packages Host your dependencies, libraries, and production-ready code, right from your repository Product Feedback
2 participants