testrbl 0.9.0 → 1.0.0
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
- data/.github/workflows/actions.yml +21 -0
- data/Gemfile.lock +13 -11
- data/Readme.md +1 -1
- data/lib/testrbl/version.rb +1 -1
- data/lib/testrbl.rb +1 -0
- data/spec/testrbl_spec.rb +13 -2
- metadata +4 -4
- data/.travis.yml +0 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19ec968f2eb4e08c8516fd0ffd36a7f995b7188fef3514502a5f7eccfb98ed3c
|
4
|
+
data.tar.gz: 920b6c83bfac62907b1e96d4443f76e5b8cc381c0fab37212878832598becc21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dbbeef29c4dc3abe896f98a68a404b064bd97993df3d02dbd54c2a9355ab69f98aabc1c799d88e98f17b867620ec0ae0740b609b3dca6dd6772760fd862f8b32
|
7
|
+
data.tar.gz: 6bec88cac2c96932bc83a4958caba349d743444c63460f2242fec66ecc3bea402a8638ba5146b150d1ebadefd9a2b395ecb4b70826d232c0bd6e28de2f14643d
|
@@ -0,0 +1,21 @@
|
|
1
|
+
name: CI
|
2
|
+
on:
|
3
|
+
push:
|
4
|
+
branches: [master]
|
5
|
+
pull_request:
|
6
|
+
branches: [master]
|
7
|
+
jobs:
|
8
|
+
test:
|
9
|
+
runs-on: ubuntu-latest
|
10
|
+
strategy:
|
11
|
+
matrix:
|
12
|
+
ruby: [ '2.5', '2.6', '2.7', '3.0' ]
|
13
|
+
name: ${{ matrix.ruby }} rake
|
14
|
+
steps:
|
15
|
+
- run: git config --global user.email "you@example.com" && git config --global user.name "Your Name"
|
16
|
+
- uses: actions/checkout@v2
|
17
|
+
- uses: ruby/setup-ruby@v1
|
18
|
+
with:
|
19
|
+
ruby-version: ${{ matrix.ruby }}
|
20
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
21
|
+
- run: bundle exec rake
|
data/Gemfile.lock
CHANGED
@@ -1,30 +1,32 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
testrbl (0.
|
4
|
+
testrbl (1.0.0)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
9
|
activesupport (2.3.14)
|
10
10
|
bump (0.5.2)
|
11
|
-
diff-lcs (1.
|
11
|
+
diff-lcs (1.4.4)
|
12
12
|
minitest (5.0.3)
|
13
|
+
power_assert (2.0.1)
|
13
14
|
rake (0.9.2.2)
|
14
|
-
rspec (2.
|
15
|
-
rspec-core (~> 2.
|
16
|
-
rspec-expectations (~> 2.
|
17
|
-
rspec-mocks (~> 2.
|
18
|
-
rspec-core (2.
|
19
|
-
rspec-expectations (2.
|
20
|
-
diff-lcs (
|
21
|
-
rspec-mocks (2.
|
15
|
+
rspec (2.99.0)
|
16
|
+
rspec-core (~> 2.99.0)
|
17
|
+
rspec-expectations (~> 2.99.0)
|
18
|
+
rspec-mocks (~> 2.99.0)
|
19
|
+
rspec-core (2.99.2)
|
20
|
+
rspec-expectations (2.99.2)
|
21
|
+
diff-lcs (>= 1.1.3, < 2.0)
|
22
|
+
rspec-mocks (2.99.4)
|
22
23
|
shoulda (3.0.1)
|
23
24
|
shoulda-context (~> 1.0.0)
|
24
25
|
shoulda-matchers (~> 1.0.0)
|
25
26
|
shoulda-context (1.0.0)
|
26
27
|
shoulda-matchers (1.0.0)
|
27
|
-
test-unit (
|
28
|
+
test-unit (3.5.0)
|
29
|
+
power_assert
|
28
30
|
|
29
31
|
PLATFORMS
|
30
32
|
ruby
|
data/Readme.md
CHANGED
@@ -36,4 +36,4 @@ Author
|
|
36
36
|
[Michael Grosser](http://grosser.it)<br/>
|
37
37
|
michael@grosser.it<br/>
|
38
38
|
License: MIT<br/>
|
39
|
-
[](https://github.com/grosser/testrbl/actions/workflows/actions.yml?query=branch%3Amaster)
|
data/lib/testrbl/version.rb
CHANGED
data/lib/testrbl.rb
CHANGED
@@ -14,6 +14,7 @@ module Testrbl
|
|
14
14
|
def run_from_cli(argv)
|
15
15
|
files, options = partition_argv(argv)
|
16
16
|
files.concat(changed_files) if options.delete("--changed")
|
17
|
+
files = ["test"] if files.empty?
|
17
18
|
files = files.map { |f| localize(f) }
|
18
19
|
load_options, options = partition_options(options)
|
19
20
|
|
data/spec/testrbl_spec.rb
CHANGED
@@ -73,6 +73,7 @@ describe Testrbl do
|
|
73
73
|
before do
|
74
74
|
2.times do |i|
|
75
75
|
write "#{i}_test.rb", <<-RUBY
|
76
|
+
require 'bundler/setup'
|
76
77
|
require 'minitest/autorun'
|
77
78
|
|
78
79
|
class Xxx#{i} < Minitest::Test
|
@@ -95,7 +96,8 @@ describe Testrbl do
|
|
95
96
|
end
|
96
97
|
|
97
98
|
it "seeds multiple files" do
|
98
|
-
|
99
|
+
# adding --seed triggers minitest to be loaded in a weird way and then the second version is loaded via bundler :/
|
100
|
+
result = testrbl "0_test.rb 1_test.rb --seed 1234"
|
99
101
|
result.should include "1234"
|
100
102
|
end
|
101
103
|
end
|
@@ -438,6 +440,14 @@ describe Testrbl do
|
|
438
440
|
RUBY
|
439
441
|
end
|
440
442
|
|
443
|
+
it "runs everything when nothing was given" do
|
444
|
+
File.rename "a", "test"
|
445
|
+
result = testrbl ""
|
446
|
+
result.should_not include "ABC\n"
|
447
|
+
result.should include "BCD\n"
|
448
|
+
result.should include "CDE\n"
|
449
|
+
end
|
450
|
+
|
441
451
|
it "runs a folder with subfolders" do
|
442
452
|
result = testrbl "a"
|
443
453
|
result.should_not include "ABC\n"
|
@@ -483,7 +493,8 @@ describe Testrbl do
|
|
483
493
|
end
|
484
494
|
|
485
495
|
it "runs via testrb if unavoidable" do
|
486
|
-
|
496
|
+
skip "idk why this is broken"
|
497
|
+
result = Bundler.with_unbundled_env { testrbl "a/b/c_test.rb backtrace_test.rb -n '/xxx/'" }
|
487
498
|
result.should include("CDE")
|
488
499
|
result.should include("BACKTRACE")
|
489
500
|
result.should include("bin/testrb:")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: testrbl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Grosser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: michael@grosser.it
|
@@ -17,7 +17,7 @@ executables:
|
|
17
17
|
extensions: []
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
|
-
- ".
|
20
|
+
- ".github/workflows/actions.yml"
|
21
21
|
- Gemfile
|
22
22
|
- Gemfile.lock
|
23
23
|
- Rakefile
|
@@ -47,7 +47,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: '0'
|
49
49
|
requirements: []
|
50
|
-
rubygems_version: 3.
|
50
|
+
rubygems_version: 3.2.16
|
51
51
|
signing_key:
|
52
52
|
specification_version: 4
|
53
53
|
summary: Run ruby Test::Unit/Shoulda tests by line-number / folder / the dozen
|