DotCoverRakeTask 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/DotCoverRakeTask.rb +12 -8
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c001fdcf2aeab43e8ce366e20727e7da6362a511
4
- data.tar.gz: c4eb337aa97921caeaacf971cb83dc81c1613828
3
+ metadata.gz: 0de0a9b6ab91f93b9bb0b45a73c0dced64238d35
4
+ data.tar.gz: 43191336c319c31267f30e7f2d8b7615ebe4007b
5
5
  SHA512:
6
- metadata.gz: be1517807802ac10fe61daa0daa9aca735710772d8615716c1be56eaa13b61dcc0d9a99286c6cbb7acab914307d1b43123e44e5d0ec443c0ada72efdd012dca8
7
- data.tar.gz: 73e5b55679fecd82241febdf751203e291a723c51d8ae9c21ad19dde7639f114470cb6d048da9b1a61e41103eae0729bebbeb53b0d1d0b19dc4b17d9eda339eb
6
+ metadata.gz: 44d3f1bc582d17fc4306fa5bac1fc81b6296d7565a156acbbf1f126c90bd4d27e333864c848830405e1fbe3b19e11271be92149a501d4d052663438d5eb9f804
7
+ data.tar.gz: 6342cdc308e53b1e5bb61d480ada3688f6a26e763324bb3773994cc709f1e41e5ae1e04b8955f8ba888d0daf9130a5dacb5c1f8cfd8e9e3fd69e709bebbf1d74
@@ -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
- output = `#{configuration.executable} cover /TargetExecutable=#{configuration.nunit_executable} /TargetArguments="#{nunit_command_line_args}" /Output=#{configuration.snapshot_file} /Filters=#{configuration.filters}`
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
- report = "#{configuration.report_name}.html"
24
- output = `#{configuration.executable} report /Source="#{configuration.snapshot_file}" /Output="#{report}" /ReportType="HTML"`
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
- report = "#{configuration.report_name}.xml"
30
- output = `#{configuration.executable} report /Source="#{configuration.snapshot_file}" /Output="#{report}" /ReportType="XML"`
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 :nunit_assemblies,
41
+ attr_accessor :executable,
42
+ :nunit_assemblies,
39
43
  :nunit_parameters,
40
- :executable,
41
44
  :nunit_executable,
42
- :snapshot_file,
45
+ :report_directory,
46
+ :snapshot_name,
43
47
  :report_name,
44
48
  :html_report,
45
49
  :xml_report
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.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - iainjmitchell