Exclude assembly from NUnit runner

sam.noble's Avatar

sam.noble

15 Dec, 2016 05:32 PM

Hi,

I'm having an issue with the latest version of NUnit in that one of our testing framework binaries is being picked up as a test assembly. NUnit then throws an error with:

Errors and Failures
1) Invalid : C:\PATH_TO_ASSEMBLY\Test.Framework.dll
Has no TestFixtures

Our test setting is set to 'Auto'.

How do you discover binaries to feed in to the nunit test runner? Can I make use of the wildcard input to exclude this file? Or is there something else I need to do?

Thanks in advance.

  1. 1 Posted by Ilya Finkelshte... on 15 Dec, 2016 06:45 PM

    Ilya Finkelshteyn's Avatar

    Hi Sam,

    • We use .NET reflection and consider all assemblies which has reference to nunit.framework, to be nunit test assemblies.

    • Currently we do not have setting to exclude setting to exclude specific assembly. You can do one of the following:

      • Enter full relative path to each assembly you want to run
      • Enter all assemblies file names you want to run without a path (AppVeyor will scan build folder to search them)
      • Wildcard. If you can come up with wildcard which match all assemblies you want to run and do not match this failed assembly, that's great, but again we have no exclude assembly settings for now.

    You can look at samples here

    Thank you,
    Ilya.

  2. 2 Posted by sam.noble on 16 Dec, 2016 09:42 AM

    sam.noble's Avatar

    Thanks Ilya, that helps a lot.

    Given that the TestFixtureAttribute is optional, I can just remove that from our base classes and remove the NUnit reference from the project.

    Thanks.

  3. sam.noble closed this discussion on 16 Dec, 2016 09:42 AM.

  4. Ilya Finkelshteyn re-opened this discussion on 05 Apr, 2017 12:44 AM

  5. 3 Posted by Ilya Finkelshte... on 05 Apr, 2017 12:44 AM

    Ilya Finkelshteyn's Avatar

    Hi Sam,

    Exclude assemblies is implemented now if you are still interested - https://www.appveyor.com/docs/running-tests/#selecting-assemblies-a...

    Ilya.

  6. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:16 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