Tests not being found in VS2012 solution

Francis's Avatar

Francis

09 Jul, 2013 02:16 PM

I have 2 sites currently running on AppVeyor, both have tests in the same place. One is a 2010 solution which is running the tests (NUnit) fine, the other is a 2012 solution converted from 2010 but it is not running any of the unit tests (NUnit) giving a result of 0/0.

  1. Support Staff 1 Posted by Feodor Fitsner on 09 Jul, 2013 06:52 PM

    Feodor Fitsner's Avatar

    Hi Francis,

    I'm looking into that now. I will let you know about my findings.

    -Feodor

  2. Support Staff 2 Posted by Feodor Fitsner on 09 Jul, 2013 07:41 PM

    Feodor Fitsner's Avatar

    OK, found it.

    There was a problem with "Cloak.NUnit.dll" assembly. To determine what should be tested AppVeyor seeks for assemblies referencing "nunit.framework.dll" and then pass all assemblies to nunit-console.exe as a single command. Cloak.NUnit.dll is referencing nunit.framework.dll of old version 2.5.x causing an exception in NUnit console.

    Solution: open project settings, go to "Tests" section, click Add assembly and enter Cloak.NUnit.dll (add it to the list of excluded assemblies). Save settings. Should work like a charm.

    In the meantime I will file a change request to run NUnit separately for each assembly with unit tests.

  3. 3 Posted by Francis Gilbert on 09 Jul, 2013 08:43 PM

    Francis Gilbert's Avatar

    Wow! Amazing spot! Thanks :). Love the service.

    Francis

  4. Support Staff 4 Posted by Feodor Fitsner on 09 Jul, 2013 08:48 PM

    Feodor Fitsner's Avatar

    You're welcome! :)

  5. Feodor Fitsner closed this discussion on 09 Jul, 2013 08:48 PM.

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