knapsack_pro 0.33.0 → 0.34.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/knapsack_pro/runners/queue/rspec_runner.rb +11 -5
- data/lib/knapsack_pro/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: 3e582f3bb77bbb31b75f5af3dafaf64640cc5422
|
4
|
+
data.tar.gz: 3c63bb3184ad83294ea4e56228a0f6162339a06d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 967fc7bf640046172006cf18cd7f29b83875755cec5f008f5a0abe63578fbb3d0eb16958800155acc3b6f3a395b628c510414eec26251acde8d08dd7d3b939ea
|
7
|
+
data.tar.gz: 74dcb5541c52a0f4bd3bd83b31a3553946b77f9ebe06a61f8b6d2595a2732b9564201e071694b0b85f64aa7019c6d7af07e11f71742d69fb047b2bf9ca83b684
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,13 @@
|
|
2
2
|
|
3
3
|
* TODO
|
4
4
|
|
5
|
+
### 0.34.0
|
6
|
+
|
7
|
+
* Fix command visible at the end of RSpec Queue Mode output to be able retry test files with spaces in name.
|
8
|
+
* Fix command visible at the end of RSpec Queue Mode output to be able retry test files without RSpecQueueSummaryFormatter which is dedicated only for Queue Mode.
|
9
|
+
|
10
|
+
https://github.com/KnapsackPro/knapsack_pro-ruby/compare/v0.33.0...v0.34.0
|
11
|
+
|
5
12
|
### 0.33.0
|
6
13
|
|
7
14
|
* Add RSpec Queue Formatter to hide duplicated pending and failed tests in Queue Mode
|
@@ -30,8 +30,7 @@ module KnapsackPro
|
|
30
30
|
unless all_test_file_paths.empty?
|
31
31
|
KnapsackPro::Formatters::RSpecQueueSummaryFormatter.print_summary
|
32
32
|
|
33
|
-
|
34
|
-
log_rspec_command(cli_args, :end_of_queue)
|
33
|
+
log_rspec_command(args, all_test_file_paths, :end_of_queue)
|
35
34
|
end
|
36
35
|
|
37
36
|
KnapsackPro::Report.save_node_queue_to_api
|
@@ -43,7 +42,7 @@ module KnapsackPro
|
|
43
42
|
all_test_file_paths += test_file_paths
|
44
43
|
cli_args = args + test_file_paths
|
45
44
|
|
46
|
-
log_rspec_command(
|
45
|
+
log_rspec_command(args, test_file_paths, :subset_queue)
|
47
46
|
|
48
47
|
options = RSpec::Core::ConfigurationOptions.new(cli_args)
|
49
48
|
exit_code = RSpec::Core::Runner.new(options).run($stderr, $stdout)
|
@@ -56,14 +55,21 @@ module KnapsackPro
|
|
56
55
|
|
57
56
|
private
|
58
57
|
|
59
|
-
def self.log_rspec_command(cli_args, type)
|
58
|
+
def self.log_rspec_command(cli_args, test_file_paths, type)
|
60
59
|
case type
|
61
60
|
when :subset_queue
|
62
61
|
KnapsackPro.logger.info("To retry in development the subset of tests fetched from API queue please run below command on your machine. If you use --order random then remember to add proper --seed 123 that you will find at the end of rspec command.")
|
63
62
|
when :end_of_queue
|
64
63
|
KnapsackPro.logger.info("To retry in development the tests for this CI node please run below command on your machine. It will run all tests in a single run. If you need to reproduce a particular subset of tests fetched from API queue then above after each request to Knapsack Pro API you will find example rspec command.")
|
65
64
|
end
|
66
|
-
|
65
|
+
|
66
|
+
stringify_cli_args = cli_args.join(' ')
|
67
|
+
stringify_cli_args.slice!("--format #{KnapsackPro::Formatters::RSpecQueueSummaryFormatter}")
|
68
|
+
|
69
|
+
KnapsackPro.logger.info(
|
70
|
+
"bundle exec rspec #{stringify_cli_args} " +
|
71
|
+
KnapsackPro::TestFilePresenter.stringify_paths(test_file_paths)
|
72
|
+
)
|
67
73
|
end
|
68
74
|
end
|
69
75
|
end
|
data/lib/knapsack_pro/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knapsack_pro
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.34.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ArturT
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04-
|
11
|
+
date: 2017-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|