简体   繁体   中英

OpenCover and NUnit GUI

I'm trying to use NUnit-Gui with OpenCover. To do it I'm starting the OpenCover with NUnit-Gui as main process, with the command as follow:

C:\OpenCover\OpenCover.Console.exe -target:"C:\Nunit\nunit-gui.exe" -register:user -targetargs:"C:\Myproject\bin\Myproject.Test.dll" -output:"C:\OpenCover\reports\OpenCoverreport.xml" 

But I've need to close the NUnit-Gui process to get the coverage result. I'd like to get the result without closing the main process.

Is there a way to run NUnit-Gui with code coverage without to close the process NUnit-Gui?

No. Sorry but OpenCover was primarily created for use with commandline test tools and running as part of the regular build.

If you are looking to get coverage per test (which it sorts of feels like) then you should have a look at the -coverbytest switch. You can also look at running individual tests using the command line to nunit-console.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM