knapsack_pro 7.8.1 → 7.9.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
  SHA256:
3
- metadata.gz: 9ef08fdcb6733ab55c27b8950c057f60798399e6af3ca535fcd8a9e7982b9c29
4
- data.tar.gz: 43e412bce3cab199ff2beaf9218f0c0b3ad8f8ac8998b3a3081b3dfaf8aacdde
3
+ metadata.gz: 3d625a03b86be895a8b0250cc4bc19e9a3a53065f99d05266e1a2a3a09c8e115
4
+ data.tar.gz: b89c5d69fd4330ff4bec30c5a44a37d4bc6a6622743e75044aafcfaae13b5a4f
5
5
  SHA512:
6
- metadata.gz: 1e57cf0ed3ee020aa241ac13eb70b4e559fec9fece0b80d316ee832b16e52ad4711953a02aa86a576a3e67e89d200c50d22d6aa33f50280f71ff4a9f925c14f1
7
- data.tar.gz: ceb0f1f95f900f2f243fcb5ddf8698fe5a9f213f115bcf3fd05bdb12bcc332d750ceabc01c790b2a67e56facf2868e05a9fa46da51a0d5e405849725c6b0d8ba
6
+ metadata.gz: f30db8ff8c5f391814991fc565036b35c416f2c2015d48e9385ad2bd8b2dbd242867817df03fcd053b152c31b2e142da07f50069251b0a586dc6ef572833b05a
7
+ data.tar.gz: 285de6eab1d7fb36c457ca3361748208064bcbfe6cf937a37cc6997b2c1334e121545072ffab7cfc2096ef877837faa0f5c70930d35dca29c80a880add04c5d7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ### 7.9.0
4
+
5
+ * A more readable error message for the RSpec split by examples JSON report (remove ANSI codes that are not human-readable)
6
+
7
+ https://github.com/KnapsackPro/knapsack_pro-ruby/pull/275
8
+
9
+ https://github.com/KnapsackPro/knapsack_pro-ruby/compare/v7.8.2...v7.9.0
10
+
11
+ ### 7.8.2
12
+
13
+ * Set `RSpec.world.wants_to_quit` to true when any signal is received by the knapsack_pro gem to allow graceful exit.
14
+
15
+ https://github.com/KnapsackPro/knapsack_pro-ruby/pull/273
16
+
17
+ https://github.com/KnapsackPro/knapsack_pro-ruby/compare/v7.8.1...v7.8.2
18
+
3
19
  ### 7.8.1
4
20
 
5
21
  * Handle `nil` in `Thread#backtrace` and `Exception#backtrace`.
@@ -59,6 +59,7 @@ module KnapsackPro
59
59
  Signal.trap(signal) {
60
60
  puts "#{signal} signal has been received. Terminating Knapsack Pro..."
61
61
  @@terminate_process = true
62
+ RSpec.world.wants_to_quit = true
62
63
  log_threads
63
64
  }
64
65
  end
@@ -27,6 +27,7 @@ module KnapsackPro
27
27
 
28
28
  cli_args = cli_format + [
29
29
  '--dry-run',
30
+ '--no-color',
30
31
  '--out', report_path,
31
32
  '--default-path', test_dir,
32
33
  ] + KnapsackPro::TestFilePresenter.paths(test_file_entities)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module KnapsackPro
4
- VERSION = '7.8.1'
4
+ VERSION = '7.9.0'
5
5
  end
@@ -1383,8 +1383,8 @@ describe "#{KnapsackPro::Runners::Queue::RSpecRunner} - Integration tests", :cle
1383
1383
  expect(actual.stdout).to include('B1.1.1 test example (PENDING: Temporarily skipped with xit)')
1384
1384
  expect(actual.stdout).to include('INT signal has been received. Terminating Knapsack Pro...')
1385
1385
  expect(actual.stdout).to include('B1.1.2 test example')
1386
- expect(actual.stdout).to include('B1.1.3 test example (FAILED - 1)')
1387
- expect(actual.stdout).to include('B1.2.1 test example')
1386
+ expect(actual.stdout).to_not include('B1.1.3 test example (FAILED - 1)')
1387
+ expect(actual.stdout).to_not include('B1.2.1 test example')
1388
1388
 
1389
1389
  # next ExampleGroup within the same b_spec.rb is not executed
1390
1390
  expect(actual.stdout).to_not include('B2.1 test example')
@@ -1404,14 +1404,6 @@ describe "#{KnapsackPro::Runners::Queue::RSpecRunner} - Integration tests", :cle
1404
1404
  OUTPUT
1405
1405
  )
1406
1406
 
1407
- expect(actual.stdout).to include(
1408
- <<~OUTPUT
1409
- Failures:
1410
-
1411
- 1) B1_describe B1.1_describe B1.1.3 test example
1412
- OUTPUT
1413
- )
1414
-
1415
1407
 
1416
1408
  expect(actual.stdout).to include('Use the following backtrace(s) to find the line of code that got stuck if the CI node hung and terminated your tests.')
1417
1409
  expect(actual.stdout).to include('Main thread backtrace:')
@@ -48,6 +48,7 @@ describe KnapsackPro::TestCaseDetectors::RSpecTestExampleDetector do
48
48
  expect(RSpec::Core::ConfigurationOptions).to receive(:new).with([
49
49
  '--format', expected_format,
50
50
  '--dry-run',
51
+ '--no-color',
51
52
  '--out', report_path,
52
53
  '--default-path', test_dir,
53
54
  'spec/a_spec.rb', 'spec/b_spec.rb',
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: 7.8.1
4
+ version: 7.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ArturT
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-08 00:00:00.000000000 Z
11
+ date: 2024-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -415,7 +415,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
415
415
  - !ruby/object:Gem::Version
416
416
  version: '0'
417
417
  requirements: []
418
- rubygems_version: 3.5.16
418
+ rubygems_version: 3.5.11
419
419
  signing_key:
420
420
  specification_version: 4
421
421
  summary: Knapsack Pro splits tests across parallel CI nodes and ensures each parallel