I set up a build configuration to use StatLight tool to run Silverlight unit tests.
I'm using MSBuild as a build runner.
I created a new target in a .proj file, that looks like
<Exec Command="$(StatLightExe) -x=$(ClientSrcDir)\ClientTests\Bin\Debug\ClientTests.xap --teamcity" />
$(StatLightExe) - is a path to Statlight application.
Then I just call this target inside the "BuildAll" target.
So, when the build is completed, I'm getting test results, that are duplicated!
E.g. I expect to see the following:
Tests failed: 3, passed: 2, ignored: 1.
But what I see is -
Tests failed: 6, passed: 4, ignored: 2.
I thought that MSBuild calls my target twice, and runs tests twice, but I looked at build log, and see that the target is called once, but the log is duplicated.
Looks strange, and I tried a lot of variations, and checked the proj file several times, but I'm still getting duplicated results.
Does anybody have any idea?
I'm attaching the log, just a small piece of it. If look at log time, we may see that time [11:13:00]: goes after [11:13:03].