Unit Tests are being run twice (After upgrade to TeamCity 7.0)

I have upgraded to TeamCity 7, since then it appears that occasionally some unit tests are being run twice.

My build agent is configured to use the default checkout folder (on the agent).

This is what I see in the build logs:

First occurance:

at RAFInterfaceTests.ParametersTests.Parameters_SettingsParameterMatchesASystemEnvVariable_GetParamValueReturnsSettingsParameter() in c:\TeamCity\buildAgent\work\84e1fe2dc448ce5d\RAF\Executer\RAFInterface.Tests\ParametersTests.cs:line 140

Second occurance:

at RAFInterfaceTests.ParametersTests.Parameters_SettingsParameterMatchesASystemEnvVariable_GetParamValueReturnsSettingsParameter() in
c:\BuildAgent\work\NoRanorex\RAF\Executer\RAFInterface.Tests\ParametersTests.cs:line 140

C:\BuildAgent is not configured anywhere to be used as far as i can see.

I am running unit tests using the built in NUnit runner using these wildcards:


**/bin/**/*.Tests.dll
**/bin/**/*.IntegrationTests.dll


Is this something that was seen? what can be wrong?

Thanks
Lior

4 comments
Comment actions Permalink

Hello,

VisualStudio projects used to have obj folder under all project output directories.
Please check if you may have included bin/Release, bin/Debug or obj folder into the set. This could lead to double of assemblies.

0
Comment actions Permalink

This is not the case here.

As seen in the wilcards i am using for selecting tests, obj folder is not picked up..

Our build only uses the Debug configuration...

Take a look at the paths i have included... Very strange. This never happened using 6.5.6

0
Comment actions Permalink

Hello,

Have you found the solutions?

You may try to add one extra step to dump files
http://blog.jonnyzzz.name/2011/05/debugging-builds.html

In the build log there sould be paths logged.
BTW. Please make sure you updated to 7.0.1

0

Please sign in to leave a comment.