DotCoverRakeTask 1.0.7 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/DotCoverRakeTask.rb +5 -0
- metadata +2 -2
data/lib/DotCoverRakeTask.rb
CHANGED
@@ -37,6 +37,11 @@ class DotCoverWrapper
|
|
37
37
|
def run_coverage(executable, nunit_executable, nunit_command_line_args, snapshot_output_file, filters)
|
38
38
|
output = `#{executable} cover /TargetExecutable=#{nunit_executable} /TargetArguments="#{nunit_command_line_args}" /Output=#{snapshot_output_file} /Filters=#{filters}`
|
39
39
|
puts output
|
40
|
+
raise 'Unit Test Failures!' if unit_test_errors?
|
41
|
+
end
|
42
|
+
|
43
|
+
def unit_test_errors?
|
44
|
+
$?.to_i != 0
|
40
45
|
end
|
41
46
|
|
42
47
|
def create_html_report(executable, snapshot_output_file, report_file)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: DotCoverRakeTask
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-10-
|
13
|
+
date: 2014-10-16 00:00:00.000000000 Z
|
14
14
|
dependencies: []
|
15
15
|
description:
|
16
16
|
email: iainjmitchell@gmail.com
|