puppet-catalog-test 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module PuppetCatalogTest
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
 
4
4
  DEFAULT_FILTER = /.*/
5
5
 
@@ -1,5 +1,6 @@
1
1
  require "yaml"
2
2
  require "puppet"
3
+ require "parallel"
3
4
 
4
5
  require "puppet-catalog-test/test_case"
5
6
  require "puppet-catalog-test/stdout_reporter"
@@ -117,8 +118,9 @@ module PuppetCatalogTest
117
118
  @out.puts "[INFO] Using puppet #{Puppet::PUPPETVERSION}"
118
119
 
119
120
  run_start = Time.now
121
+ proc_count = Parallel.processor_count
120
122
 
121
- @test_cases.each do |tc|
123
+ processed_test_cases = Parallel.map(@test_cases, :in_processes => proc_count) do |tc|
122
124
  begin
123
125
  tc_start_time = Time.now
124
126
 
@@ -140,8 +142,12 @@ module PuppetCatalogTest
140
142
 
141
143
  @reporter.report_failed_test_case(tc)
142
144
  end
145
+
146
+ tc
143
147
  end
144
148
 
149
+ @test_cases = processed_test_cases
150
+
145
151
  @total_duration = Time.now - run_start
146
152
 
147
153
  @reporter.summarize(self)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'puppet-catalog-test'
3
- s.version = '0.2.0'
3
+ s.version = '0.2.1'
4
4
  s.homepage = 'https://github.com/invadersmustdie/puppet-catalog-test/'
5
5
  s.summary = 'Test all your puppet catalogs for compiler warnings and errors'
6
6
  s.description = 'Test all your puppet catalogs for compiler warnings and errors.'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet-catalog-test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: