I get the following error when I successfully run unit tests in VS2012:
The cancelation of the test run is not possible as there is no test run which is in progress
The error only appears after the unit tests succeeds (green check in visual studio).
Why do I get this error?
You need to close the Test Explorer Window to prevent automatic running.
View > Layout > Test: Test windows show out. Click “Run all tests” button, then click “stop the executing solution” in the menu bar, the test also stopped.
Stop tests Use the following options on the Run toolbar of the Test Runner tab: Click. or press Ctrl+F2 to terminate the process immediately.
A test is not a unit-test if: it communicates with a database. it cannot run in parallel with other tests. uses the "environment" like registry or file system.
I'm using VS 2012 and using the Test Explorer with the NUnit Test Adapter and this error prevented me from being able to debug a failing test. I found a workaround to this issue here
To overcome these exceptions:
- Navigate to the Debug menu item
- Select "Options and Settings..."
- Check "Enable Just My Code"
As a side note, this also allows you to step-into shimmed code (via fakes usage).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With