Exclude assembly from NUnit runner
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.
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

1 Posted by Ilya Finkelshte... on 15 Dec, 2016 06:45 PM
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:
You can look at samples here
Thank you,
Ilya.
2 Posted by sam.noble on 16 Dec, 2016 09:42 AM
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.
sam.noble closed this discussion on 16 Dec, 2016 09:42 AM.
Ilya Finkelshteyn re-opened this discussion on 05 Apr, 2017 12:44 AM
3 Posted by Ilya Finkelshte... on 05 Apr, 2017 12:44 AM
Hi Sam,
Exclude assemblies is implemented now if you are still interested - https://www.appveyor.com/docs/running-tests/#selecting-assemblies-a...
Ilya.
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:16 AM.