DotCoverRakeTask 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/DotCoverRakeTask.rb +12 -8
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0de0a9b6ab91f93b9bb0b45a73c0dced64238d35
|
4
|
+
data.tar.gz: 43191336c319c31267f30e7f2d8b7615ebe4007b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44d3f1bc582d17fc4306fa5bac1fc81b6296d7565a156acbbf1f126c90bd4d27e333864c848830405e1fbe3b19e11271be92149a501d4d052663438d5eb9f804
|
7
|
+
data.tar.gz: 6342cdc308e53b1e5bb61d480ada3688f6a26e763324bb3773994cc709f1e41e5ae1e04b8955f8ba888d0daf9130a5dacb5c1f8cfd8e9e3fd69e709bebbf1d74
|
data/lib/DotCoverRakeTask.rb
CHANGED
@@ -16,18 +16,21 @@ class DotCoverWrapper
|
|
16
16
|
@block.call(configuration)
|
17
17
|
nunit_command_line_args = "#{configuration.nunit_assemblies.join(' ')} #{configuration.nunit_parameters.join(' ')}"
|
18
18
|
|
19
|
-
|
19
|
+
snapshot_output_file = "#{configuration.report_directory}/#{configuration.snapshot_name}"
|
20
|
+
report_file_path_and_name = "#{configuration.report_directory}/#{configuration.report_name}"
|
21
|
+
|
22
|
+
output = `#{configuration.executable} cover /TargetExecutable=#{configuration.nunit_executable} /TargetArguments="#{nunit_command_line_args}" /Output=#{snapshot_output_file} /Filters=#{configuration.filters}`
|
20
23
|
puts output
|
21
24
|
|
22
25
|
if (configuration.html_report)
|
23
|
-
|
24
|
-
output = `#{configuration.executable} report /Source="#{
|
26
|
+
report_html_file = "#{report_file_path_and_name}.html"
|
27
|
+
output = `#{configuration.executable} report /Source="#{snapshot_output_file}" /Output="#{report_html_file}" /ReportType="HTML"`
|
25
28
|
puts output
|
26
29
|
end
|
27
30
|
|
28
31
|
if (configuration.xml_report)
|
29
|
-
|
30
|
-
output = `#{configuration.executable} report /Source="#{
|
32
|
+
report_xml_file = "#{report_file_path_and_name}.xml"
|
33
|
+
output = `#{configuration.executable} report /Source="#{snapshot_output_file}" /Output="#{report_xml_file}" /ReportType="XML"`
|
31
34
|
puts output
|
32
35
|
end
|
33
36
|
|
@@ -35,11 +38,12 @@ class DotCoverWrapper
|
|
35
38
|
end
|
36
39
|
|
37
40
|
class DotCoverConfiguration
|
38
|
-
attr_accessor :
|
41
|
+
attr_accessor :executable,
|
42
|
+
:nunit_assemblies,
|
39
43
|
:nunit_parameters,
|
40
|
-
:executable,
|
41
44
|
:nunit_executable,
|
42
|
-
:
|
45
|
+
:report_directory,
|
46
|
+
:snapshot_name,
|
43
47
|
:report_name,
|
44
48
|
:html_report,
|
45
49
|
:xml_report
|