Build/Test Issues

Set of Tests listed twice in the NCrunch Processing Queue

Started by rlarno on 6,793 views

Hi Remco,

While running our solution at some point in time (have not been able to find the 'trigger'), I get the same set of tests twice in the NCrunch Processing Queue.

Doing a reset resolves the issue again.

External image


Rudi
Believe it or not, this is actually normal behaviour :)

NCrunch will not remove tests from the queue while they are still executing, so if your tests were still running at the time your project was changed, then a new (often identical) task would be queued next to the old one.

It's important to consider this as this behaviour means that a test can be run side-by-side with itself ... so if you have any tests that are using specific resources in a database or the file system, make sure you attribute them with the ExclusivelyUsesAttribute (if you're running tests in parallel that is).

Post a reply

Log in to reply.