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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 49534563e8d2c43647b84e457e1fd35873167eaa70b1687a63217d6005a11c5c
4
- data.tar.gz: e5bc529fee2b1791547b4dc0f053c7138de70a9477b325d9fd2981eb8c040e40
3
+ metadata.gz: 19ec968f2eb4e08c8516fd0ffd36a7f995b7188fef3514502a5f7eccfb98ed3c
4
+ data.tar.gz: 920b6c83bfac62907b1e96d4443f76e5b8cc381c0fab37212878832598becc21
5
5
  SHA512:
6
- metadata.gz: d1222308ab263f3098cdad5f0a99bf5abddecc6b61a7b5cb2a80066fefa1541ac88fbe1a722aa0e5182fea897df2ad6ad50a3afe20f91326a455de220e9fdb12
7
- data.tar.gz: b5f502bcb6064306ffe14d6d9b58dd01a4e1f5c214720de65cec275047e1f60d8366c5beeb656bd71ecd172493a9924a3ae69e154340f1236d44aa147b5f31a3
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.9.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.1.3)
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.11.0)
15
- rspec-core (~> 2.11.0)
16
- rspec-expectations (~> 2.11.0)
17
- rspec-mocks (~> 2.11.0)
18
- rspec-core (2.11.1)
19
- rspec-expectations (2.11.3)
20
- diff-lcs (~> 1.1.3)
21
- rspec-mocks (2.11.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 (2.5.2)
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
- [![Build Status](https://travis-ci.org/grosser/testrbl.png)](https://travis-ci.org/grosser/testrbl)
39
+ [![CI](https://github.com/grosser/testrbl/actions/workflows/actions.yml/badge.svg)](https://github.com/grosser/testrbl/actions/workflows/actions.yml?query=branch%3Amaster)
@@ -1,3 +1,3 @@
1
1
  module Testrbl
2
- VERSION = '0.9.0'
2
+ VERSION = '1.0.0'
3
3
  end
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
- result = Bundler.with_clean_env { testrbl "0_test.rb 1_test.rb --seed 1234" } # adding --seed triggers minitest to be loaded in a weird way and then the second version is loaded via bundler :/
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
- result = Bundler.with_clean_env { testrbl "a/b/c_test.rb backtrace_test.rb -n '/xxx/'" }
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.9.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: 2020-11-05 00:00:00.000000000 Z
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
- - ".travis.yml"
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.1.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
data/.travis.yml DELETED
@@ -1,12 +0,0 @@
1
- sudo: false
2
- before_install:
3
- - git config --global user.email "you@example.com"
4
- - git config --global user.name "Your Name"
5
- - gem install bundler
6
- rvm:
7
- - 1.9.3
8
- - 2.0.0
9
- - 2.1.8
10
- - 2.2.3
11
- branches:
12
- only: master