Unit tests not being discovered

It seems that either no unit tests are being discovered or they're not being run. This was working and there have been no configuration changes to my project settings, but when I checked in some new code changes none of the unit tests were discovered or run.

  1. What testing framework is that?

  2. Also, do you have assemblies configured on Tests tab of project settings?

  3. All of the unit tests are built using MS Test. If you look at the history for build 1.0.23, you'll see that the unit tests were previously being discovered and run. I do have assemblies configured, using the following wildcard:

    \.UnitTests.dll

    I'm pretty sure this wildcard was also in place for the previous builds, when unit tests were discovered.

  4. There were some changes in wildcards matching (fixed recursive behaviour). If you are matching UnitTests.dll recursively in all folders use just UnitTests.dll.

  5. Yes, I'm matching recursively, but it should be finding any assemblies ending in .UnitTests.dll. Wouldn't I still need some sort of wildcard?

  6. Yeah, to match recursively any assembly ending with .UnitTests.dll use **\*.UnitTests.dll

  7. That worked. Thanks!

  8. Scott Dorman closed this discussion on 17 Jun, 2014 04:20 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac