File tree Expand file tree Collapse file tree 2 files changed +29
-0
lines changed
src/ResourceManager/Compute/Commands.Compute.Test Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change 400
400
ContinueOnError =" false" />
401
401
</Target >
402
402
403
+ <Target Name =" ComputeCodeCoverage" DependsOnTargets =" ForceRestorePackages;Clean;BuildDebug" >
404
+ <Message Importance =" high" Text =" Gathering Code Coverage data from Compute tests..." />
405
+ <Delete Files =" Project.covarage" />
406
+ <Exec
407
+ Command =" pushd .\src\ResourceManager\Compute\Commands.Compute.Test\
408
+ .\ComputeCodeCoverage.cmd
409
+ popd"
410
+ ContinueOnError =" false" />
411
+ </Target >
412
+
403
413
<!-- DSC extension related targets -->
404
414
<Target Name =" TestDSCExtension_x64" >
405
415
<Message Importance =" high" Text =" Running DSC extension BVT x64 tests..." />
Original file line number Diff line number Diff line change
1
+ @ echo off
2
+
3
+ set " ROOTDIR = ..\..\..\..\"
4
+ set " VSTOOLSDIR = C:\Program Files (x86)\Microsoft Visual Studio 12.0\Team Tools\Performance Tools\"
5
+
6
+ set " VSINSTR = " %VSTOOLSDIR% vsinstr.exe" "
7
+ set " VSPERFCMD = " %VSTOOLSDIR% VSPerfCmd.exe" "
8
+ set " RESULT = " %ROOTDIR% Project.coverage" "
9
+ set " DLL = " %ROOTDIR% src\ResourceManager\Compute\Commands.Compute.Test\bin\Debug\Microsoft.Azure.Commands.Compute.dll" "
10
+ set " TEST = " %ROOTDIR% src\ResourceManager\Compute\Commands.Compute.Test\bin\Debug\Microsoft.Azure.Commands.Compute.Test.dll" "
11
+ set " XUNIT = " %ROOTDIR% packages\xunit.runner.console.2.0.0\tools\xunit.console.x86.exe" "
12
+
13
+ %VSINSTR% /COVERAGE %DLL%
14
+
15
+ %VSPERFCMD% /start:COVERAGE /OUTPUT:%RESULT%
16
+
17
+ %XUNIT% %TEST%
18
+
19
+ %VSPERFCMD% /SHUTDOWN
You can’t perform that action at this time.
0 commit comments