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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d67c800e334256a4ec337d39b062f884dd104c66
4
- data.tar.gz: 6abba16d16344dc3646fe33b1f72a7940790736f
3
+ metadata.gz: 3e582f3bb77bbb31b75f5af3dafaf64640cc5422
4
+ data.tar.gz: 3c63bb3184ad83294ea4e56228a0f6162339a06d
5
5
  SHA512:
6
- metadata.gz: f901514b6e6ee5ecc22cc72f957bf78845196b53a3aadba5dabadf2cb37b84ea5369f91deee8eb220238c24a7736540067ef4deb9f4c2899020141abba1868bd
7
- data.tar.gz: a2f8feb04f69e5fcb5f3a702a239a45238ffdf92c15a2c66ffb6e5618c2f64527722a5bb5037e72d396defec1e4ceb45eebab4aa6f153cf22139c3bfcc270c2a
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
- cli_args = args + all_test_file_paths
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(cli_args, :subset_queue)
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
- KnapsackPro.logger.info("bundle exec rspec " + cli_args.join(' '))
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
@@ -1,3 +1,3 @@
1
1
  module KnapsackPro
2
- VERSION = '0.33.0'
2
+ VERSION = '0.34.0'
3
3
  end
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.33.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-23 00:00:00.000000000 Z
11
+ date: 2017-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake