DotCoverRakeTask 1.0.0

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 +15 -0
  2. data/lib/DotCoverRakeTask.rb +32 -0
  3. metadata +45 -0
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NTdkOTgwNzQzYzY3OWMzZGQ4MTY1NzI5NGRkMjBlYzNmNTRkMGEyMQ==
5
+ data.tar.gz: !binary |-
6
+ ZTA3NzZmZGZhOTAxOGY5NjUxZTRmODdkYTJmYmI5OTFhZDMxMWZiMA==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ ZmY4M2NhMjRkOGIyMDdlMzE4Y2Q5OTJmYWNiZTgxYjczZWM5YzhkYmFlNTM5
10
+ ODJlOTk4M2I3ODJkYzk5MzI3NWNkY2Q1MTI2MTc0MzRkNjg5MmJmZTAyMjQx
11
+ NThmYzljYmNkNmU0NjVmODQ2MzgzZTA2YmViMzZkNTRiM2ZmOWE=
12
+ data.tar.gz: !binary |-
13
+ NTU1NDA1ODZlMTFmYWNhODUyMzE0MDc1NzlmNTAzYjkzOGQ4ZDFmNWViNmZk
14
+ YTc2MzgyN2Q0NmU1MTY2MTI1YzQ1ODRiYWM2YTg0NjE0ODI2NDlmMjIyYjk5
15
+ OWFjNzBiMDk2MDExZTU0NzNhMjg4MTFmY2MzNjVjYjcwNjRmOGQ=
@@ -0,0 +1,32 @@
1
+ include Rake::DSL
2
+
3
+ def dotCover(*args, &block)
4
+ dotcover_wrapper = DotCoverWrapper.new(&block)
5
+ task = Proc.new { dotcover_wrapper.run }
6
+ Rake::Task.define_task(*args, &task)
7
+ end
8
+
9
+ class DotCoverWrapper
10
+ def initialize(&block)
11
+ @block = block;
12
+ end
13
+
14
+ def run()
15
+ configuration = DotCoverConfiguration.new
16
+ @block.call(configuration)
17
+ nunit_command_line_args = "#{configuration.nunit_assemblies.join(' ')} #{configuration.nunit_parameters.join(' ')}"
18
+
19
+ output = `#{configuration.executable} analyse /TargetExecutable=#{configuration.nunit_executable} /TargetArguments="#{nunit_command_line_args}" /Output=#{configuration.output} /Filters=#{configuration.filters}`
20
+
21
+ puts output
22
+ end
23
+ end
24
+
25
+ class DotCoverConfiguration
26
+ attr_accessor :nunit_assemblies,
27
+ :nunit_parameters,
28
+ :executable,
29
+ :nunit_executable,
30
+ :output,
31
+ :filters
32
+ end
metadata ADDED
@@ -0,0 +1,45 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: DotCoverRakeTask
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - iainjmitchell
8
+ - adamprendergast
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2014-04-30 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description:
15
+ email: iainjmitchell@gmail.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - lib/DotCoverRakeTask.rb
21
+ homepage: https://github.com/code-computerlove/dotcover-rake-task
22
+ licenses:
23
+ - MIT
24
+ metadata: {}
25
+ post_install_message:
26
+ rdoc_options: []
27
+ require_paths:
28
+ - lib
29
+ required_ruby_version: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ required_rubygems_version: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ! '>='
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ requirements: []
40
+ rubyforge_project:
41
+ rubygems_version: 2.2.2
42
+ signing_key:
43
+ specification_version: 4
44
+ summary: DotCover Rake Task
45
+ test_files: []