MSBUILD Run NCover Against Matched Projects
Pergunta
I am using MSBuild and am getting all test projects using a regex on the project name, like this.
<RegexMatch Input="@(AllProjects)" Expression="(.)*Test(.)*">
<Output TaskParameter="Output" ItemName="UnitTestProjects"/>
</RegexMatch>
I now want to use @(UnitTestProjects) and pass them all to NCover to check that the tests are all giving 100% coverage.
To do this on a single project, I do something like this:
<Target Name="Coverage">
<NCover TestRunnerExe="C:\Program Files\NUnit 2.5.8\bin\net-2.0\nunit-console.exe"
TestRunnerArgs=""C:\SomeProject\bin\SomeProject.dll" "C:\SomeProject\bin\SomeProjectTest.dll""
WorkingDirectory="C:\SomeProject\bin\"
AppendTrendTo="coverage.trend"
OnlyAssembliesWithSource="True"
ProjectName="SomeProjectCoverage" />
</Target>
How do I effectively use @(UnitTestProjects) in the context of this NCover target?
Nenhuma solução correta
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow