turbo_tests2 3.1.9 → 3.1.10
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
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +16 -1
- data/README.md +1 -1
- data/lib/turbo_tests/cli.rb +1 -1
- data/lib/turbo_tests/runner.rb +22 -3
- data/lib/turbo_tests/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +4 -4
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1897469552c29056b84010fd5991b4465c76c41e1a66c6c1381dcf3ac88af695
|
|
4
|
+
data.tar.gz: cdbeee85dd4055a61a4202f721b0f394395bd91db75e5994d4e80590f37ddbe7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ef33ca0fe4ebcc40e26195844a5d2a2cefa62c677f38e129b2b2fa407c6a8ecb904837ee4d2f3960e1edea7b03d289e4c12b6b619eb76970ea39fb992c920e8e
|
|
7
|
+
data.tar.gz: 83893ce9174430d692795cc45213c85bfcb159d35401279df0692b4072af6a54339ed9a79c533b191be6c2171cce51b0b8f5522cdaa85ce0e530a3d2545b32a8
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/CHANGELOG.md
CHANGED
|
@@ -30,6 +30,19 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
|
30
30
|
|
|
31
31
|
### Security
|
|
32
32
|
|
|
33
|
+
## [3.1.10] - 2026-07-15
|
|
34
|
+
|
|
35
|
+
- TAG: [v3.1.10][3.1.10t]
|
|
36
|
+
- COVERAGE: 97.65% -- 706/723 lines in 10 files
|
|
37
|
+
- BRANCH COVERAGE: 88.95% -- 169/190 branches in 10 files
|
|
38
|
+
- 36.67% documented
|
|
39
|
+
|
|
40
|
+
### Fixed
|
|
41
|
+
|
|
42
|
+
- No-argument runs now use RSpec configuration for file discovery, including
|
|
43
|
+
`.rspec` `--pattern` settings, instead of assuming a top-level `spec/`
|
|
44
|
+
directory.
|
|
45
|
+
|
|
33
46
|
## [3.1.9] - 2026-07-14
|
|
34
47
|
|
|
35
48
|
- TAG: [v3.1.9][3.1.9t]
|
|
@@ -235,7 +248,9 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
|
235
248
|
|
|
236
249
|
- Initial release
|
|
237
250
|
|
|
238
|
-
[Unreleased]: https://github.com/galtzo-floss/turbo_tests2/compare/v3.1.
|
|
251
|
+
[Unreleased]: https://github.com/galtzo-floss/turbo_tests2/compare/v3.1.10...HEAD
|
|
252
|
+
[3.1.10]: https://github.com/galtzo-floss/turbo_tests2/compare/v3.1.9...v3.1.10
|
|
253
|
+
[3.1.10t]: https://github.com/galtzo-floss/turbo_tests2/releases/tag/v3.1.10
|
|
239
254
|
[3.1.9]: https://github.com/galtzo-floss/turbo_tests2/compare/v3.1.8...v3.1.9
|
|
240
255
|
[3.1.9t]: https://github.com/galtzo-floss/turbo_tests2/releases/tag/v3.1.9
|
|
241
256
|
[3.1.8]: https://github.com/galtzo-floss/turbo_tests2/compare/v3.1.7...v3.1.8
|
data/README.md
CHANGED
|
@@ -666,7 +666,7 @@ Thanks for RTFM. ☺️
|
|
|
666
666
|
[📌gitmoji]: https://gitmoji.dev
|
|
667
667
|
[📌gitmoji-img]: https://img.shields.io/badge/gitmoji_commits-%20%F0%9F%98%9C%20%F0%9F%98%8D-34495e.svg?style=flat-square
|
|
668
668
|
[🧮kloc]: https://www.youtube.com/watch?v=dQw4w9WgXcQ
|
|
669
|
-
[🧮kloc-img]: https://img.shields.io/badge/KLOC-0.
|
|
669
|
+
[🧮kloc-img]: https://img.shields.io/badge/KLOC-0.723-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
|
|
670
670
|
[🔐security]: https://github.com/galtzo-floss/turbo_tests2/blob/main/SECURITY.md
|
|
671
671
|
[🔐security-img]: https://img.shields.io/badge/security-policy-259D6C.svg?style=flat
|
|
672
672
|
[📄copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
|
data/lib/turbo_tests/cli.rb
CHANGED
data/lib/turbo_tests/runner.rb
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
require "json"
|
|
4
4
|
require "parallel_tests/rspec/runner"
|
|
5
|
+
require "rspec/core"
|
|
5
6
|
require "tempfile"
|
|
6
7
|
|
|
7
8
|
require_relative "../utils/hash_extension"
|
|
@@ -23,7 +24,8 @@ module TurboTests
|
|
|
23
24
|
end
|
|
24
25
|
|
|
25
26
|
def run(opts = {})
|
|
26
|
-
|
|
27
|
+
default_file_discovery = !opts.key?(:files) || opts[:files].nil?
|
|
28
|
+
files = default_file_discovery ? rspec_configured_files_to_run : opts[:files]
|
|
27
29
|
formatters = opts[:formatters]
|
|
28
30
|
tags = opts[:tags]
|
|
29
31
|
parallel_options = opts[:parallel_options] || {}
|
|
@@ -41,7 +43,7 @@ module TurboTests
|
|
|
41
43
|
print_failed_group = opts.fetch(:print_failed_group, false)
|
|
42
44
|
nice = opts.fetch(:nice, false)
|
|
43
45
|
|
|
44
|
-
use_runtime_info =
|
|
46
|
+
use_runtime_info = default_file_discovery
|
|
45
47
|
|
|
46
48
|
if example_status_log
|
|
47
49
|
runtime_log = runtime_log_from_example_status(example_status_log)
|
|
@@ -103,6 +105,16 @@ module TurboTests
|
|
|
103
105
|
def generate_seed
|
|
104
106
|
(Random.new_seed % 65_535).to_s
|
|
105
107
|
end
|
|
108
|
+
|
|
109
|
+
def rspec_configured_files_to_run
|
|
110
|
+
configuration = RSpec::Core::Configuration.new
|
|
111
|
+
RSpec::Core::ConfigurationOptions.new([]).configure(configuration)
|
|
112
|
+
root = "#{Dir.pwd}/"
|
|
113
|
+
configuration.files_to_run.map do |path|
|
|
114
|
+
path = path.to_s
|
|
115
|
+
path.start_with?(root) ? path.delete_prefix(root) : path
|
|
116
|
+
end
|
|
117
|
+
end
|
|
106
118
|
end
|
|
107
119
|
|
|
108
120
|
def initialize(**opts)
|
|
@@ -142,11 +154,18 @@ module TurboTests
|
|
|
142
154
|
end
|
|
143
155
|
|
|
144
156
|
def run
|
|
157
|
+
tests_with_size = ParallelTests::RSpec::Runner.tests_with_size(@files, {})
|
|
145
158
|
@num_processes = [
|
|
146
159
|
ParallelTests.determine_number_of_processes(@count),
|
|
147
|
-
|
|
160
|
+
tests_with_size.size
|
|
148
161
|
].min
|
|
149
162
|
|
|
163
|
+
if @num_processes.zero?
|
|
164
|
+
@tests_in_groups = []
|
|
165
|
+
@reporter.report([]) { |_reporter| }
|
|
166
|
+
return 0
|
|
167
|
+
end
|
|
168
|
+
|
|
150
169
|
tests_in_groups =
|
|
151
170
|
ParallelTests::RSpec::Runner.tests_in_groups(
|
|
152
171
|
@files,
|
data/lib/turbo_tests/version.rb
CHANGED
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: 3.1.
|
|
4
|
+
version: 3.1.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Illia
|
|
@@ -312,10 +312,10 @@ licenses:
|
|
|
312
312
|
- MIT
|
|
313
313
|
metadata:
|
|
314
314
|
homepage_uri: https://turbo-tests2.galtzo.com
|
|
315
|
-
source_code_uri: https://github.com/galtzo-floss/turbo_tests2/tree/v3.1.
|
|
316
|
-
changelog_uri: https://github.com/galtzo-floss/turbo_tests2/blob/v3.1.
|
|
315
|
+
source_code_uri: https://github.com/galtzo-floss/turbo_tests2/tree/v3.1.10
|
|
316
|
+
changelog_uri: https://github.com/galtzo-floss/turbo_tests2/blob/v3.1.10/CHANGELOG.md
|
|
317
317
|
bug_tracker_uri: https://github.com/galtzo-floss/turbo_tests2/issues
|
|
318
|
-
documentation_uri: https://www.rubydoc.info/gems/turbo_tests2/3.1.
|
|
318
|
+
documentation_uri: https://www.rubydoc.info/gems/turbo_tests2/3.1.10
|
|
319
319
|
funding_uri: https://github.com/sponsors/pboling
|
|
320
320
|
wiki_uri: https://github.com/galtzo-floss/turbo_tests2/wiki
|
|
321
321
|
news_uri: https://www.railsbling.com/tags/turbo_tests2
|
metadata.gz.sig
CHANGED
|
Binary file
|