简体   繁体   中英

Run NUnit tests in C# while other project is being debugged

I don't even know if it's possible to do this.

I need to run some NUnit tests while other project in the same solution is running in debug mode with an application's process active (AutoCAD).

Or maybe the other project should be run in debug mode when I click the button to run the tests... Both options would do it.

When you run a mstest unit test the test created its own application scope. Unless you are able to somehow initiate you entire application in a test (not sure it is a good idea) you should take a look at using a remote debugger ( https://docs.microsoft.com/en-us/visualstudio/debugger/remote-debugging?view=vs-2019 )

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