turbo_tests2 4.0.1 → 4.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 24b1f07c3142af3e9771f015bd59d1c52537adfd8c2aa397265c97fa4778c6ec
4
- data.tar.gz: 1fb164c9ec4ab7fa00c56ff3c9485f533b8fe6ebd55e7ed01a7cfeac56b145d7
3
+ metadata.gz: 228bed7ab0e4351de54e0f608908be78ba8b582cad720fbe6eff5d7745d56b34
4
+ data.tar.gz: 882db3a7ad95ba80466c3221c7d1f83decefd2dc230b625ac99ebbbba7afcf48
5
5
  SHA512:
6
- metadata.gz: cc69a66019574a06ca7042588bb0a76fe994daec0ef192c1cf020e098e5d65f3b48f8ec47f6c90c2fd7cce4a4f78b19cd1fd8fdfcd5db42adf420c509c5cdbd6
7
- data.tar.gz: 7e7e810df18c73105b82dc78459b8083950fda3578036a4f9d98caa8176a385eb6171d90a42c5b779b7486397fdff2f9d6bf663106af29243dfaf87ddf3360d6
6
+ metadata.gz: d6b15078cee04b9068a6659e2d61e922ecec475eec5b0c4280e435b2aed840886ab9192cf3a71cedfac90c7db0ff8073e6ffaa5ee11c4bf971d1ff78ea431f52
7
+ data.tar.gz: 65e8b9524de510125b3f2eb02b1a67f8f4628e4c176568182eba7d39d2d18d794a7232f8b08553992acd763442535714833687621012d3261a6b2eedea08af3a
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -30,6 +30,28 @@ Please file a bug if you notice a violation of semantic versioning.
30
30
 
31
31
  ### Security
32
32
 
33
+ ## [4.0.2] - 2026-11-14
34
+
35
+ - TAG: [v4.0.2][4.0.2t]
36
+ - COVERAGE: 96.04% -- 1115/1161 lines in 12 files
37
+ - BRANCH COVERAGE: 82.83% -- 304/367 branches in 12 files
38
+ - 36.67% documented
39
+
40
+ ### Added
41
+
42
+ - Opt-in `KETTLE_TEST_EVENTS=1` live `test_progress` NDJSON events (throttled ticks, immediate failure events, final) emitted from the parent process via `Kettle::Ndjson::TestProgress` (kettle-ndjson >= 0.1.24)
43
+
44
+ ### Changed
45
+
46
+ - [kc] kettle-jem/prepare: updated 5 project files:
47
+ - dependencies (5)
48
+
49
+ - [kc] kettle-jem/template: updated 4 project files:
50
+ - code and tests (1)
51
+ - documentation (1)
52
+ - other (1)
53
+ - workflows (1)
54
+
33
55
  ## [4.0.1] - 2026-11-10
34
56
 
35
57
  - TAG: [v4.0.1][4.0.1t]
@@ -398,10 +420,6 @@ Please file a bug if you notice a violation of semantic versioning.
398
420
  missing canonical version spec when a project only has shim namespace version
399
421
  specs.
400
422
 
401
- - kettle-jem-template-20260729-001 - Generated JRuby 9.4 workflows now use the
402
- legacy manual bundle install path, avoiding setup-time Bundler full-index
403
- failures against `gem.coop`.
404
-
405
423
  - kettle-jem-template-20260730-001 - Gemspec package file enumeration now runs
406
424
  relative to the gemspec directory, so packaged template assets are included
407
425
  even when the gemspec is loaded from another working directory.
@@ -818,7 +836,9 @@ Please file a bug if you notice a violation of semantic versioning.
818
836
 
819
837
  - Initial release
820
838
 
821
- [Unreleased]: https://github.com/galtzo-floss/turbo_tests2/compare/v4.0.1...HEAD
839
+ [Unreleased]: https://github.com/galtzo-floss/turbo_tests2/compare/v4.0.2...HEAD
840
+ [4.0.2]: https://github.com/galtzo-floss/turbo_tests2/compare/v4.0.1...v4.0.2
841
+ [4.0.2t]: https://github.com/galtzo-floss/turbo_tests2/releases/tag/v4.0.2
822
842
  [4.0.1]: https://github.com/galtzo-floss/turbo_tests2/compare/v4.0.0...v4.0.1
823
843
  [4.0.1t]: https://github.com/galtzo-floss/turbo_tests2/releases/tag/v4.0.1
824
844
  [4.0.0]: https://github.com/galtzo-floss/turbo_tests2/compare/v3.2.17...v4.0.0
data/README.md CHANGED
@@ -97,8 +97,8 @@ Finished in 2 minute 25.15 seconds (files took 0 seconds to load)
97
97
 
98
98
  | Tokens to Remember | [![Gem name][⛳️name-img]][⛳️gem-name] [![Gem namespace][⛳️namespace-img]][⛳️gem-namespace] |
99
99
  |-------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
100
- | Works with JRuby | [![JRuby 9.2 Compat][💎jruby-9.2i]][🚎jruby-9.2-wf] [![JRuby 9.3 Compat][💎jruby-9.3i]][🚎jruby-9.3-wf] <br/> [![JRuby 9.4 Compat][💎jruby-9.4i]][🚎jruby-9.4-wf] [![JRuby 10.0 Compat][💎jruby-10.0i]][🚎jruby-10.0-wf] [![JRuby current Compat][💎jruby-c-i]][🚎10-j-wf] [![JRuby HEAD Compat][💎jruby-headi]][🚎3-hd-wf]|
101
- | Works with Truffle Ruby | [![Truffle Ruby 23.1 Compat][💎truby-23.1i]][🚎truby-23.1-wf] <br/> [![Truffle Ruby 24.2 Compat][💎truby-24.2i]][🚎truby-24.2-wf] [![Truffle Ruby 25.0 Compat][💎truby-25.0i]][🚎truby-25.0-wf] [![Truffle Ruby 33.0 Compat][💎truby-33.0i]][🚎truby-33.0-wf] [![Truffle Ruby current Compat][💎truby-c-i]][🚎9-t-wf]|
100
+ | Works with JRuby | [![JRuby 10.0 Compat][💎jruby-10.0i]][🚎jruby-10.0-wf] [![JRuby current Compat][💎jruby-c-i]][🚎10-j-wf] [![JRuby HEAD Compat][💎jruby-headi]][🚎3-hd-wf]|
101
+ | Works with Truffle Ruby | [![Truffle Ruby 33.0 Compat][💎truby-33.0i]][🚎truby-33.0-wf] [![Truffle Ruby current Compat][💎truby-c-i]][🚎9-t-wf]|
102
102
  | Works with MRI Ruby 4 | [![Ruby current Compat][💎ruby-c-i]][🚎11-c-wf] [![Ruby HEAD Compat][💎ruby-headi]][🚎3-hd-wf]|
103
103
  | Works with MRI Ruby 3 | [![Ruby 3.0 Compat][💎ruby-3.0i]][🚎ruby-3.0-wf] [![Ruby 3.1 Compat][💎ruby-3.1i]][🚎ruby-3.1-wf] [![Ruby 3.2 Compat][💎ruby-3.2i]][🚎ruby-3.2-wf] [![Ruby 3.3 Compat][💎ruby-3.3i]][🚎ruby-3.3-wf] [![Ruby 3.4 Compat][💎ruby-3.4i]][🚎ruby-3.4-wf]|
104
104
  | Works with MRI Ruby 2 | [![Ruby 2.4 Compat][💎ruby-2.4i]][🚎ruby-2.4-wf] [![Ruby 2.5 Compat][💎ruby-2.5i]][🚎ruby-2.5-wf] [![Ruby 2.6 Compat][💎ruby-2.6i]][🚎ruby-2.6-wf] [![Ruby 2.7 Compat][💎ruby-2.7i]][🚎ruby-2.7-wf]|
@@ -449,6 +449,31 @@ Notes:
449
449
  bundle exec turbo_tests2 -r fuubar -f Fuubar spec/whatever
450
450
  ```
451
451
 
452
+ ### Live test progress events
453
+
454
+ Opt-in, off by default. Set `KETTLE_TEST_EVENTS=1` (also `true`/`yes`/`on`) and the
455
+ `turbo_tests2` parent process aggregates every worker's results and writes
456
+ [kettle-ndjson](https://github.com/kettle-dev/kettle-ndjson) `test_progress` events,
457
+ one JSON object per line, to stdout. It never emits one event per example.
458
+
459
+ ```json
460
+ {"kind":"tick","source":"turbo_tests2","examples":120,"failures":1,"pending":2,"elapsed":8.31,"type":"test_progress","event_version":1}
461
+ {"kind":"failure","source":"turbo_tests2","examples":57,"failures":1,"pending":0,"elapsed":4.02,"location":"./spec/a_spec.rb:3","description":"A fails","type":"test_progress","event_version":1}
462
+ ```
463
+
464
+ | Field | Meaning |
465
+ | --- | --- |
466
+ | `type` | always `test_progress` |
467
+ | `event_version` | `1` |
468
+ | `kind` | `tick` (throttled, at most 1/s), `failure` (immediate, one per failed example), `final` (once, at end) |
469
+ | `source` | `turbo_tests2` (the `kettle-test` formatter emits `kettle-test`) |
470
+ | `examples`, `failures`, `pending` | running totals across all workers |
471
+ | `elapsed` | seconds since the run started (float) |
472
+ | `location`, `description` | `failure` only: example location and full description |
473
+
474
+ `KETTLE_TEST_EVENTS_INTERVAL` (seconds, default `1`) tunes the tick throttle. Each event is
475
+ preceded by a newline so it starts on its own line even amid progress dots.
476
+
452
477
  ### Rake Hooks
453
478
 
454
479
  If Rake and a Rakefile are present, the CLI will invoke the tasks `turbo_tests2:setup` and
@@ -801,13 +826,7 @@ Thanks for RTFM. ☺️
801
826
  [🚎ruby-3.2-wf]: https://github.com/galtzo-floss/turbo_tests2/actions/workflows/ruby-3.2.yml
802
827
  [🚎ruby-3.3-wf]: https://github.com/galtzo-floss/turbo_tests2/actions/workflows/ruby-3.3.yml
803
828
  [🚎ruby-3.4-wf]: https://github.com/galtzo-floss/turbo_tests2/actions/workflows/ruby-3.4.yml
804
- [🚎jruby-9.2-wf]: https://github.com/galtzo-floss/turbo_tests2/actions/workflows/jruby-9.2.yml
805
- [🚎jruby-9.3-wf]: https://github.com/galtzo-floss/turbo_tests2/actions/workflows/jruby-9.3.yml
806
- [🚎jruby-9.4-wf]: https://github.com/galtzo-floss/turbo_tests2/actions/workflows/jruby-9.4.yml
807
829
  [🚎jruby-10.0-wf]: https://github.com/galtzo-floss/turbo_tests2/actions/workflows/jruby-10.0.yml
808
- [🚎truby-23.1-wf]: https://github.com/galtzo-floss/turbo_tests2/actions/workflows/truffleruby-23.1.yml
809
- [🚎truby-24.2-wf]: https://github.com/galtzo-floss/turbo_tests2/actions/workflows/truffleruby-24.2.yml
810
- [🚎truby-25.0-wf]: https://github.com/galtzo-floss/turbo_tests2/actions/workflows/truffleruby-25.0.yml
811
830
  [🚎truby-33.0-wf]: https://github.com/galtzo-floss/turbo_tests2/actions/workflows/truffleruby-33.0.yml
812
831
  [🚎2-cov-wf]: https://github.com/galtzo-floss/turbo_tests2/actions/workflows/coverage.yml
813
832
  [🚎2-cov-wfi]: https://github.com/galtzo-floss/turbo_tests2/actions/workflows/coverage.yml/badge.svg
@@ -840,14 +859,8 @@ Thanks for RTFM. ☺️
840
859
  [💎ruby-3.4i]: https://img.shields.io/badge/Ruby-3.4-CC342D?style=for-the-badge&logo=ruby&logoColor=white
841
860
  [💎ruby-c-i]: https://img.shields.io/badge/Ruby-current-CC342D?style=for-the-badge&logo=ruby&logoColor=green
842
861
  [💎ruby-headi]: https://img.shields.io/badge/Ruby-HEAD-CC342D?style=for-the-badge&logo=ruby&logoColor=blue
843
- [💎truby-23.1i]: https://img.shields.io/badge/Truffle_Ruby-23.1-34BCB1?style=for-the-badge&logo=ruby&logoColor=pink
844
- [💎truby-24.2i]: https://img.shields.io/badge/Truffle_Ruby-24.2-34BCB1?style=for-the-badge&logo=ruby&logoColor=pink
845
- [💎truby-25.0i]: https://img.shields.io/badge/Truffle_Ruby-25.0-34BCB1?style=for-the-badge&logo=ruby&logoColor=pink
846
862
  [💎truby-33.0i]: https://img.shields.io/badge/Truffle_Ruby-33.0-34BCB1?style=for-the-badge&logo=ruby&logoColor=pink
847
863
  [💎truby-c-i]: https://img.shields.io/badge/Truffle_Ruby-current-34BCB1?style=for-the-badge&logo=ruby&logoColor=green
848
- [💎jruby-9.2i]: https://img.shields.io/badge/JRuby-9.2-FBE742?style=for-the-badge&logo=ruby&logoColor=red
849
- [💎jruby-9.3i]: https://img.shields.io/badge/JRuby-9.3-FBE742?style=for-the-badge&logo=ruby&logoColor=red
850
- [💎jruby-9.4i]: https://img.shields.io/badge/JRuby-9.4-FBE742?style=for-the-badge&logo=ruby&logoColor=red
851
864
  [💎jruby-10.0i]: https://img.shields.io/badge/JRuby-10.0-FBE742?style=for-the-badge&logo=ruby&logoColor=red
852
865
  [💎jruby-c-i]: https://img.shields.io/badge/JRuby-current-FBE742?style=for-the-badge&logo=ruby&logoColor=green
853
866
  [💎jruby-headi]: https://img.shields.io/badge/JRuby-HEAD-FBE742?style=for-the-badge&logo=ruby&logoColor=blue
@@ -877,7 +890,7 @@ Thanks for RTFM. ☺️
877
890
  [📌gitmoji]: https://gitmoji.dev
878
891
  [📌gitmoji-img]: https://img.shields.io/badge/gitmoji_commits-%20%F0%9F%98%9C%20%F0%9F%98%8D-34495e.svg?style=flat-square
879
892
  [🧮kloc]: https://www.youtube.com/watch?v=dQw4w9WgXcQ
880
- [🧮kloc-img]: https://img.shields.io/badge/KLOC-1.155-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
893
+ [🧮kloc-img]: https://img.shields.io/badge/KLOC-1.161-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
881
894
  [🔐security]: https://github.com/galtzo-floss/turbo_tests2/blob/main/SECURITY.md
882
895
  [🔐security-img]: https://img.shields.io/badge/security-policy-259D6C.svg?style=flat
883
896
  [📄copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
@@ -4,6 +4,7 @@ require "json"
4
4
  require "timeout"
5
5
  require "fileutils"
6
6
  require "runtime_groups"
7
+ require "kettle/ndjson"
7
8
  require "rspec/core"
8
9
  require "shellwords"
9
10
  require "tempfile"
@@ -250,6 +251,7 @@ module TurboTests
250
251
  @nice = opts[:nice]
251
252
  @use_runtime_info = opts[:use_runtime_info]
252
253
 
254
+ @progress = Kettle::Ndjson::TestProgress.from_env(io: $stdout, source: "turbo_tests2")
253
255
  @load_time = 0
254
256
  @load_count = 0
255
257
  @failure_count = 0
@@ -977,6 +979,7 @@ module TurboTests
977
979
  when "example_passed"
978
980
  example = FakeExample.from_obj(message[:example])
979
981
  @reporter.example_passed(example)
982
+ @progress&.record(:passed)
980
983
  when "group_started"
981
984
  @reporter.group_started(message[:group].to_struct)
982
985
  when "group_finished"
@@ -984,6 +987,7 @@ module TurboTests
984
987
  when "example_pending"
985
988
  example = FakeExample.from_obj(message[:example])
986
989
  @reporter.example_pending(example)
990
+ @progress&.record(:pending)
987
991
  when "load_summary"
988
992
  message = message[:summary]
989
993
  # NOTE: notifications order and content is not guaranteed hence the fetch
@@ -992,6 +996,11 @@ module TurboTests
992
996
  when "example_failed"
993
997
  example = FakeExample.from_obj(message[:example])
994
998
  @reporter.example_failed(example)
999
+ @progress&.record(
1000
+ :failed,
1001
+ location: message[:example][:location],
1002
+ description: message[:example][:full_description]
1003
+ )
995
1004
  @failure_count += 1
996
1005
  if fail_fast_met
997
1006
  report_unfinished_groups("Groups stopped by fail-fast")
@@ -1032,6 +1041,7 @@ module TurboTests
1032
1041
  $stdout.flush
1033
1042
  end
1034
1043
 
1044
+ @progress&.finish
1035
1045
  flush_deferred_run_options_messages
1036
1046
  rescue Interrupt
1037
1047
  end
@@ -4,7 +4,7 @@ module TurboTests
4
4
  # Version namespace for this gem.
5
5
  module Version
6
6
  # Current gem version.
7
- VERSION = "4.0.1"
7
+ VERSION = "4.0.2"
8
8
  end
9
9
  # Current gem version exposed at the traditional constant location.
10
10
  VERSION = Version::VERSION # Traditional Constant Location
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turbo_tests2
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.1
4
+ version: 4.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Illia
@@ -48,6 +48,26 @@ cert_chain:
48
48
  -----END CERTIFICATE-----
49
49
  date: 1980-01-02 00:00:00.000000000 Z
50
50
  dependencies:
51
+ - !ruby/object:Gem::Dependency
52
+ name: kettle-ndjson
53
+ requirement: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - "~>"
56
+ - !ruby/object:Gem::Version
57
+ version: '0.1'
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: 0.1.24
61
+ type: :runtime
62
+ prerelease: false
63
+ version_requirements: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '0.1'
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: 0.1.24
51
71
  - !ruby/object:Gem::Dependency
52
72
  name: rspec
53
73
  requirement: !ruby/object:Gem::Requirement
@@ -71,7 +91,7 @@ dependencies:
71
91
  version: '0.1'
72
92
  - - ">="
73
93
  - !ruby/object:Gem::Version
74
- version: 0.1.3
94
+ version: 0.1.5
75
95
  type: :runtime
76
96
  prerelease: false
77
97
  version_requirements: !ruby/object:Gem::Requirement
@@ -81,7 +101,7 @@ dependencies:
81
101
  version: '0.1'
82
102
  - - ">="
83
103
  - !ruby/object:Gem::Version
84
- version: 0.1.3
104
+ version: 0.1.5
85
105
  - !ruby/object:Gem::Dependency
86
106
  name: version_gem
87
107
  requirement: !ruby/object:Gem::Requirement
@@ -316,10 +336,10 @@ licenses:
316
336
  - MIT
317
337
  metadata:
318
338
  homepage_uri: https://turbo-tests2.galtzo.com
319
- source_code_uri: https://github.com/galtzo-floss/turbo_tests2/tree/v4.0.1
320
- changelog_uri: https://github.com/galtzo-floss/turbo_tests2/blob/v4.0.1/CHANGELOG.md
339
+ source_code_uri: https://github.com/galtzo-floss/turbo_tests2/tree/v4.0.2
340
+ changelog_uri: https://github.com/galtzo-floss/turbo_tests2/blob/v4.0.2/CHANGELOG.md
321
341
  bug_tracker_uri: https://github.com/galtzo-floss/turbo_tests2/issues
322
- documentation_uri: https://www.rubydoc.info/gems/turbo_tests2/4.0.1
342
+ documentation_uri: https://www.rubydoc.info/gems/turbo_tests2/4.0.2
323
343
  funding_uri: https://github.com/sponsors/pboling
324
344
  wiki_uri: https://github.com/galtzo-floss/turbo_tests2/wiki
325
345
  news_uri: https://www.railsbling.com/tags/turbo_tests2
metadata.gz.sig CHANGED
Binary file