Inherited Testclass gets ignored

I have a Base-TestClass with some generic Tests. When I inherit the class, the whole class does not get recognized by the TestRunner. Even test which are implemented in the inheriting class are not recognized. I tried to run the tests with NUnit3-console. The assemblies compiled with TC ignore the Tests. The assemblies which are build local are working correct.

I checked every setting and property I found but I don't find the problem. This included the csproj, the TC-settings and even the teamcity.msbuild.tcargs.

Does anybody have an idea what does produce the problem or what I could check?

0
2 comments

Hello Andreas,

I was unable to reproduce the problem. In my setup with inherited test classes, all tests are successfully executed and reported in TeamCity.

Could you provide more details: which NUnit version do you use? How do you setup NUnit build step in TeamCity? Which TeamCity version do you use?

Maybe you can share with us simple test project where the problem reproduces?

0
Avatar
Permanently deleted user

The problem disappeared after I removed some warnings which never seemed to make a problem. I still don't know why that warnings could create such a problem.

What I changed was:

- Fix mscorlib warning by setting x64 TargetFrameworkSDKToolsDirectory manually

- Change CodeAnalysisRuleSet since they could not be found with only BuildTools without VS installed

- Remove supportedRuntime property from the app.config

 

I use NUnit3-console and nunit.framework in version 3.6.1.0

0

Please sign in to leave a comment.