MSTest Integration with Cruise Control for Multiple Projects

I have included MSTest with cruise control for one project by following the steps below. It works fine http://www.codeproject.com/KB/tips/VSTS2008_Tests_With_CCNET.aspx?display=Print .

But if I add several projects, the result file is iterated over the result of the 2nd project. I do not see the first result of the project.

Please let me know how I can display several project results as a result.

+1
source share
1 answer

... in the meantime, I checked the problem in more detail, and it seems that my first assumption was correct (although I did not understand that there was no real script assembly, but a simple batch was used):

. . results.xml, , .

. (, , CruiseControl ).

RunTests.bat:

del "%CCNetArtifactDirectory%\results.xml"
MSTest.exe /testcontainer:<PathtoTestProject>\Bin\Debug\TestAssembly.dll /resultsfile:"%CCNetArtifactDirectory%\results.xml"

ccnet.config:

<project name="ProjectA">
    <cb:define projectArtifactDirectory="C:\path\to\data\of\ProjectA" />
    ...
    <artifactDirectory>$(projectArtifactDirectory)</artifactDirectory>
    ...
    <publishers>
        <merge>
            <files>
                <file>$(projectArtifactDirectory)\results.xml</file>
            </files>
        </merge>
    </publishers>
    ...
</project>
+1

Source: https://habr.com/ru/post/1779336/


All Articles