puppetlabs_spec_helper 2.5.0 → 2.5.1
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -1
- data/lib/puppetlabs_spec_helper/rake_tasks.rb +13 -9
- data/lib/puppetlabs_spec_helper/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0130f0a082660bbb7b06949f05de5b12fba0495a
|
|
4
|
+
data.tar.gz: 221164acdd88485d5c1925a6c1ff5f4c819a27b7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 32cef604ccbab6524d8c19c77809d792084c87afb15dfdfcf2b178a7768a2eaccad081820fd58221d52febbea46822dd61815836118c20a14fe9cfa7c6c534bc
|
|
7
|
+
data.tar.gz: 5aacb1ac9e6c48033d1c4779f857dc9869a18b00e38c374e26fac01cae4587e7e27b9afd04ddc2dea94817429579df84f1cd3da20de9501e4c824eb6e1042bc7
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
|
3
3
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
|
4
4
|
|
|
5
|
+
## [2.5.1]
|
|
6
|
+
### Summary
|
|
7
|
+
Adds a fix to the parallel_spec rake task.
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
- In parallel_spec, warn when there are no files to test against rather than fail.
|
|
11
|
+
|
|
5
12
|
## [2.5.0]
|
|
6
13
|
### Summary
|
|
7
14
|
Adds a feature to pass test file targets from 'rake spec' to 'rspec', also fixes a parsing issue with test\_tiers.
|
|
@@ -408,7 +415,8 @@ compatible yet.
|
|
|
408
415
|
### Added
|
|
409
416
|
* Initial release
|
|
410
417
|
|
|
411
|
-
[unreleased]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.5.
|
|
418
|
+
[unreleased]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.5.1...master
|
|
419
|
+
[2.5.1]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.5.0...v2.5.1
|
|
412
420
|
[2.5.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.4.0...v2.5.0
|
|
413
421
|
[2.4.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.3.2...v2.4.0
|
|
414
422
|
[2.3.2]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.3.1...v2.3.2
|
|
@@ -416,15 +416,19 @@ end
|
|
|
416
416
|
desc "Parallel spec tests"
|
|
417
417
|
task :parallel_spec do
|
|
418
418
|
raise 'Add the parallel_tests gem to Gemfile to enable this task' unless parallel_tests_loaded
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
419
|
+
if Rake::FileList[pattern].to_a.empty?
|
|
420
|
+
warn "No files for parallel_spec to run against"
|
|
421
|
+
else
|
|
422
|
+
begin
|
|
423
|
+
args = ['-t', 'rspec']
|
|
424
|
+
args.push('--').concat(ENV['CI_SPEC_OPTIONS'].strip.split(' ')).push('--') unless ENV['CI_SPEC_OPTIONS'].nil? || ENV['CI_SPEC_OPTIONS'].strip.empty?
|
|
425
|
+
args.concat(Rake::FileList[pattern].to_a)
|
|
426
|
+
|
|
427
|
+
Rake::Task[:spec_prep].invoke
|
|
428
|
+
ParallelTests::CLI.new.run(args)
|
|
429
|
+
ensure
|
|
430
|
+
Rake::Task[:spec_clean].invoke
|
|
431
|
+
end
|
|
428
432
|
end
|
|
429
433
|
end
|
|
430
434
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: puppetlabs_spec_helper
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.5.
|
|
4
|
+
version: 2.5.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Puppet, Inc.
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: exe
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2017-11-
|
|
12
|
+
date: 2017-11-22 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: mocha
|