Tests fail to run with weird error

linhares.mauricio's Avatar


09 Mar, 2015 10:30 PM

While running my test suite, right after tests, I see this:

Tests run: 158, Errors: 0, Failures: 0, Inconclusive: 0, Time: 20.4127565 seconds
  Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0
nunit-console.exe "C:\projects\spi-service\build-tools\nunit\bin\framework\nunit.mocks.dll" "C:\projects\spi-service\build-tools\nunit\bin\pnunit.tests.dll" "C:\projects\spi-service\build-tools\nunit\bin\tests\mock-assembly.dll" "C:\projects\spi-service\build-tools\nunit\bin\tests\nonamespace-assembly.dll" "C:\projects\spi-service\build-tools\nunit\bin\tests\nunit-console.tests.dll" "C:\projects\spi-service\build-tools\nunit\bin\tests\nunit-editor.tests.dll" "C:\projects\spi-service\build-tools\nunit\bin\tests\nunit-gui.tests.dll" "C:\projects\spi-service\build-tools\nunit\bin\tests\nunit.core.tests.dll" "C:\projects\spi-service\build-tools\nunit\bin\tests\nunit.core.tests.net45.dll" "C:\projects\spi-service\build-tools\nunit\bin\tests\nunit.framework.tests.dll" "C:\projects\spi-service\build-tools\nunit\bin\tests\nunit.framework.tests.net45.dll" "C:\projects\spi-service\build-tools\nunit\bin\tests\nunit.mocks.tests.dll" "C:\projects\spi-service\build-tools\nunit\bin\tests\nunit.uiexception.tests.dll" "C:\projects\spi-service\build-tools\nunit\bin\tests\nunit.uikit.tests.dll" "C:\projects\spi-service\build-tools\nunit\bin\tests\nunit.util.tests.dll" "C:\projects\spi-service\build-tools\nunit\bin\tests\test-assembly-net45.dll" "C:\projects\spi-service\build-tools\nunit\bin\tests\test-assembly.dll" "C:\projects\spi-service\build-tools\nunit\bin\tests\test-utilities.dll"
NUnit-Console version
Copyright (C) 2002-2012 Charlie Poole.
Copyright (C) 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov.
Copyright (C) 2000-2002 Philip Craig.
All Rights Reserved.
Runtime Environment - 
   OS Version: Microsoft Windows NT 6.2.9200.0
  CLR Version: 2.0.50727.8009 ( Net 3.5 )
ProcessModel: Default    DomainUsage: Multiple
Execution Runtime: net-3.5
Could not load file or assembly 'nunit-editor, Version=, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
Command exited with code -2

My code does not reference this assembly anywhere, why is it being required here?

  1. Support Staff 1 Posted by Feodor Fitsner on 09 Mar, 2015 10:48 PM

    Feodor Fitsner's Avatar

    Hi Mauricio,

    This assembly might be referenced indirectly. nunit-editor.exe is "NUnit project manager". I've never used it, but guess it's not related to tests execution.

    Replace AppVeyor tests autodiscovery with test script and add separate nunit-console.exe call for each assembly found to see which one causing troubles.

  2. 2 Posted by linhares.mauric... on 10 Mar, 2015 01:29 PM

    linhares.mauricio's Avatar

    And how do I disable it?

    Haven´t found docs on how to do it.

  3. Support Staff 3 Posted by Feodor Fitsner on 10 Mar, 2015 06:00 PM

    Feodor Fitsner's Avatar

    You can switch test mode to Script on Test tab of project settings or put test_script in appveyor.yml (if you use it for config). Put nunit-console for each assembly:

    nunit-console.exe "C:\projects\spi-service\build-tools\nunit\bin\framework\nunit.mocks.dll"
    nunit-console.exe "C:\projects\spi-service\build-tools\nunit\bin\pnunit.tests.dll"
    nunit-console.exe "C:\projects\spi-service\build-tools\nunit\bin\tests\mock-assembly.dll"
  4. 4 Posted by linhares.mauric... on 20 Mar, 2015 01:12 PM

    linhares.mauricio's Avatar

    Yeah, just disabled it and now I'm running the tests from my nant build itself, thanks!

  5. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:54 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