Unit tests not being discovered

Scott Dorman's Avatar

Scott Dorman

16 Jun, 2014 04:10 AM

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. Support Staff 1 Posted by Feodor Fitsner on 16 Jun, 2014 04:27 AM

    Feodor Fitsner's Avatar

    What testing framework is that?

  2. Support Staff 2 Posted by Feodor Fitsner on 16 Jun, 2014 04:45 AM

    Feodor Fitsner's Avatar

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

  3. 3 Posted by Scott Dorman on 16 Jun, 2014 05:01 AM

    Scott Dorman's Avatar

    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:


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

  4. Support Staff 4 Posted by Feodor Fitsner on 16 Jun, 2014 05:17 AM

    Feodor Fitsner's Avatar

    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. 5 Posted by Scott Dorman on 16 Jun, 2014 05:24 AM

    Scott Dorman's Avatar

    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. Support Staff 6 Posted by Feodor Fitsner on 16 Jun, 2014 05:28 AM

    Feodor Fitsner's Avatar

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

  7. 7 Posted by Scott Dorman on 17 Jun, 2014 04:20 AM

    Scott Dorman's Avatar

    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


? 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