From 7b45e51919bd73e7c33de3b74b7d92cde69dd504 Mon Sep 17 00:00:00 2001 From: Antony Male Date: Fri, 23 May 2014 13:31:21 +0100 Subject: [PATCH] Modify Rakefile to not fail if TestResult.xml doesn't exist --- Rakefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index d47b023..2904418 100644 --- a/Rakefile +++ b/Rakefile @@ -43,7 +43,7 @@ end desc "Run unit tests using the current CONFIG (or Debug)" task :test => [:nunit_test_runner] do |t| - rm 'TestResult.xml' + rm 'TestResult.xml', :force => true end desc "Launch the NUnit gui pointing at the correct DLL for CONFIG (or Debug)" @@ -86,7 +86,7 @@ def instrument(runner, target) coverage_file = File.join(COVERAGE_DIR, File.basename(target).ext('xml')) sh OPENCOVER_CONSOLE, %Q{-register:user -target:"#{opttarget}" -filter:"+[Stylet]* -[Stylet]XamlGeneratedNamespace.*" -targetargs:"#{opttargetargs} /noshadow" -output:"#{coverage_file}"} - rm 'TestResult.xml' if runner == :nunit + rm('TestResult.xml', :force => true) if runner == :nunit coverage_file end