minitest-rerun-failed 0.1.3 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/main.yml +27 -3
- data/.rubocop.yml +1 -1
- data/.ruby-version +1 -0
- data/CHANGELOG.md +10 -2
- data/Gemfile.lock +5 -4
- data/README.md +27 -6
- data/lib/minitest_rerun_failed/version.rb +1 -1
- data/minitest_rerun_failed.gemspec +6 -6
- metadata +17 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 485404465452e991f7b27055a31d394c3d7dc0c06a4823403c48fde77f7fa03b
|
4
|
+
data.tar.gz: 77aa5098324bf9e671be67647ab169e7c293b897a0933a58824173b87b0a6b40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a42145d916f118f4c210d2ae55b729e4a10f537b75956bb9c2c14d928189c08776867736aa882711cb1fa939e7e56e80b0d0826eb3dff1d307ba4b8114a6056a
|
7
|
+
data.tar.gz: 1e4bec4e76d5a64706e91bdebfd3252a8d7848261373a808d7d701a5a129fca42c2ced7b020208b3f15e526c8b80d22931713dfa3de223da286b67f7b64c9e4f
|
data/.github/workflows/main.yml
CHANGED
@@ -1,16 +1,40 @@
|
|
1
|
-
name:
|
1
|
+
name: Tests
|
2
2
|
|
3
3
|
on: [push,pull_request]
|
4
4
|
|
5
5
|
jobs:
|
6
|
-
|
6
|
+
rake_test_ruby_3_0:
|
7
7
|
runs-on: ubuntu-latest
|
8
8
|
steps:
|
9
9
|
- uses: actions/checkout@v2
|
10
10
|
- name: Set up Ruby
|
11
11
|
uses: ruby/setup-ruby@v1
|
12
12
|
with:
|
13
|
-
ruby-version: 3.0.
|
13
|
+
ruby-version: 3.0.2
|
14
14
|
bundler-cache: true
|
15
15
|
- name: Run rake test
|
16
16
|
run: bundle exec rake test
|
17
|
+
|
18
|
+
rake_test_ruby_2_7:
|
19
|
+
runs-on: ubuntu-latest
|
20
|
+
steps:
|
21
|
+
- uses: actions/checkout@v2
|
22
|
+
- name: Set up Ruby
|
23
|
+
uses: ruby/setup-ruby@v1
|
24
|
+
with:
|
25
|
+
ruby-version: 2.7.4
|
26
|
+
bundler-cache: true
|
27
|
+
- name: Run rake test
|
28
|
+
run: bundle exec rake test
|
29
|
+
|
30
|
+
rake_test_ruby_2_6:
|
31
|
+
runs-on: ubuntu-latest
|
32
|
+
steps:
|
33
|
+
- uses: actions/checkout@v2
|
34
|
+
- name: Set up Ruby
|
35
|
+
uses: ruby/setup-ruby@v1
|
36
|
+
with:
|
37
|
+
ruby-version: 2.6.8
|
38
|
+
bundler-cache: true
|
39
|
+
- name: Run rake test
|
40
|
+
run: bundle exec rake test
|
data/.rubocop.yml
CHANGED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
3.1.1
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
|
-
## [
|
1
|
+
## [0.2.1] - 2022-12-04
|
2
|
+
- Set dependency versions with >= so they do not enforce old versions
|
2
3
|
|
3
|
-
## [0.
|
4
|
+
## [0.2.0] - 2021-09-12
|
5
|
+
- Add support for Ruby 2.6
|
4
6
|
|
7
|
+
## [0.1.3] - 2021-09-09
|
5
8
|
- Initial release
|
9
|
+
- Outputs to console
|
10
|
+
- Outputs to file
|
11
|
+
- Rerun must be done semi-manually via something like `bundle exec rails test $(cat .minitest_failed_tests.txt)`
|
12
|
+
|
13
|
+
|
data/Gemfile.lock
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
minitest-rerun-failed (0.
|
5
|
-
minitest (
|
6
|
-
minitest-reporters (
|
4
|
+
minitest-rerun-failed (0.2.0)
|
5
|
+
minitest (>= 5.0.0)
|
6
|
+
minitest-reporters (>= 1.4.0)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
@@ -44,6 +44,7 @@ GEM
|
|
44
44
|
|
45
45
|
PLATFORMS
|
46
46
|
x86_64-darwin-19
|
47
|
+
x86_64-darwin-20
|
47
48
|
x86_64-linux
|
48
49
|
|
49
50
|
DEPENDENCIES
|
@@ -56,4 +57,4 @@ DEPENDENCIES
|
|
56
57
|
rubocop-rake
|
57
58
|
|
58
59
|
BUNDLED WITH
|
59
|
-
2.2.
|
60
|
+
2.2.22
|
data/README.md
CHANGED
@@ -1,17 +1,19 @@
|
|
1
1
|
# minitest-rerun-failed
|
2
|
+
[![Gem Version](https://badge.fury.io/rb/minitest-rerun-failed.svg)](https://badge.fury.io/rb/minitest-rerun-failed)
|
2
3
|
![master branch CI](https://github.com/houen/minitest-rerun-failed/actions/workflows/main.yml/badge.svg?branch=master)
|
4
|
+
[![Gem Version](https://badge.fury.io/rb/minitest-rerun-failed.svg)](https://badge.fury.io/rb/minitest-rerun-failed)
|
3
5
|
|
4
|
-
Easy rerun of failed tests with minitest.
|
6
|
+
Easy rerun of failed tests with minitest. Prints a list of failed tests and seed at the end of the test run to console and file. Allows for re-running the failed tests via `cat`'ing the outputted file.
|
5
7
|
|
6
8
|
![Example screenshot](assets/screenshot.png)
|
7
9
|
|
8
|
-
##
|
10
|
+
## Features
|
9
11
|
- Outputs all failed tests in short summary at end of test run.
|
10
12
|
- To console and / or to file
|
11
13
|
- Optionally includes line numbers
|
12
14
|
- Lists seed of run for rerun.
|
13
15
|
- [TODO] Executable for running only failed tests
|
14
|
-
- Until
|
16
|
+
- Until done, use something like
|
15
17
|
- `ruby $(cat .minitest_failed_tests.txt)`
|
16
18
|
- `bundle exec rails test $(cat .minitest_failed_tests.txt)`
|
17
19
|
|
@@ -20,7 +22,7 @@ Easy rerun of failed tests with minitest.
|
|
20
22
|
Add this line to your application's Gemfile:
|
21
23
|
|
22
24
|
```ruby
|
23
|
-
gem '
|
25
|
+
gem 'minitest-rerun-failed'
|
24
26
|
```
|
25
27
|
|
26
28
|
And then execute:
|
@@ -29,19 +31,38 @@ And then execute:
|
|
29
31
|
|
30
32
|
Or install it yourself as:
|
31
33
|
|
32
|
-
$ gem install
|
34
|
+
$ gem install minitest-rerun-failed
|
33
35
|
|
34
36
|
## Usage
|
35
37
|
|
36
38
|
Use it like any Minitest::Reporters like such:
|
37
39
|
|
38
|
-
```
|
40
|
+
```ruby
|
39
41
|
Minitest::Reporters.use! [
|
40
42
|
Minitest::Reporters::ProgressReporter.new, # This is just my preferred reporter. Use the one(s) you like.
|
41
43
|
Minitest::Reporters::FailedTestsReporter.new(verbose: true, include_line_numbers: true)
|
42
44
|
]
|
43
45
|
```
|
44
46
|
|
47
|
+
## Rails Usage
|
48
|
+
|
49
|
+
In your `test_helper.rb` file, add the following lines
|
50
|
+
|
51
|
+
```ruby
|
52
|
+
require "minitest_rerun_failed"
|
53
|
+
|
54
|
+
Minitest::Reporters.use!(
|
55
|
+
[Minitest::Reporters::DefaultReporter.new(color: true),
|
56
|
+
Minitest::Reporters::FailedTestsReporter.new(verbose: true, include_line_numbers: true, output_path: "tmp")
|
57
|
+
],
|
58
|
+
ENV,
|
59
|
+
Minitest.backtrace_filter
|
60
|
+
)
|
61
|
+
|
62
|
+
```
|
63
|
+
|
64
|
+
|
65
|
+
|
45
66
|
### Options
|
46
67
|
- include_line_numbers: Include line numbers in outputs. Defaults to true
|
47
68
|
- verbose: Output to stdout. Defaults to true
|
@@ -9,13 +9,13 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.email = ["s@houen.net"]
|
10
10
|
|
11
11
|
spec.summary = "Easily rerun failed tests with Minitest"
|
12
|
-
spec.homepage = "https://www.github.com/houen/
|
12
|
+
spec.homepage = "https://www.github.com/houen/minitest-rerun-failed"
|
13
13
|
spec.license = "MIT"
|
14
|
-
spec.required_ruby_version = ">= 2.
|
14
|
+
spec.required_ruby_version = ">= 2.6.0"
|
15
15
|
|
16
16
|
spec.metadata["homepage_uri"] = spec.homepage
|
17
|
-
spec.metadata["source_code_uri"] = "https://www.github.com/houen/
|
18
|
-
spec.metadata["changelog_uri"] = "https://www.github.com/houen/
|
17
|
+
spec.metadata["source_code_uri"] = "https://www.github.com/houen/minitest-rerun-failed"
|
18
|
+
spec.metadata["changelog_uri"] = "https://www.github.com/houen/minitest-rerun-failed/CHANGELOG.md"
|
19
19
|
|
20
20
|
# Specify which files should be added to the gem when it is released.
|
21
21
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
@@ -27,8 +27,8 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.require_paths = ["lib"]
|
28
28
|
|
29
29
|
# Uncomment to register a new dependency of your gem
|
30
|
-
spec.add_dependency "minitest", "
|
31
|
-
spec.add_dependency "minitest-reporters", "
|
30
|
+
spec.add_dependency "minitest", ">= 5.0.0"
|
31
|
+
spec.add_dependency "minitest-reporters", ">= 1.4.0"
|
32
32
|
|
33
33
|
# For more information and examples about making a new gem, checkout our
|
34
34
|
# guide at: https://bundler.io/guides/creating_gem.html
|
metadata
CHANGED
@@ -1,43 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest-rerun-failed
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Søren Houen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 5.
|
19
|
+
version: 5.0.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 5.
|
26
|
+
version: 5.0.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: minitest-reporters
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.4.
|
33
|
+
version: 1.4.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.4.
|
40
|
+
version: 1.4.0
|
41
41
|
description:
|
42
42
|
email:
|
43
43
|
- s@houen.net
|
@@ -48,6 +48,7 @@ files:
|
|
48
48
|
- ".github/workflows/main.yml"
|
49
49
|
- ".gitignore"
|
50
50
|
- ".rubocop.yml"
|
51
|
+
- ".ruby-version"
|
51
52
|
- CHANGELOG.md
|
52
53
|
- Gemfile
|
53
54
|
- Gemfile.lock
|
@@ -61,13 +62,13 @@ files:
|
|
61
62
|
- lib/minitest_rerun_failed/failed_tests_reporter.rb
|
62
63
|
- lib/minitest_rerun_failed/version.rb
|
63
64
|
- minitest_rerun_failed.gemspec
|
64
|
-
homepage: https://www.github.com/houen/
|
65
|
+
homepage: https://www.github.com/houen/minitest-rerun-failed
|
65
66
|
licenses:
|
66
67
|
- MIT
|
67
68
|
metadata:
|
68
|
-
homepage_uri: https://www.github.com/houen/
|
69
|
-
source_code_uri: https://www.github.com/houen/
|
70
|
-
changelog_uri: https://www.github.com/houen/
|
69
|
+
homepage_uri: https://www.github.com/houen/minitest-rerun-failed
|
70
|
+
source_code_uri: https://www.github.com/houen/minitest-rerun-failed
|
71
|
+
changelog_uri: https://www.github.com/houen/minitest-rerun-failed/CHANGELOG.md
|
71
72
|
post_install_message:
|
72
73
|
rdoc_options: []
|
73
74
|
require_paths:
|
@@ -76,14 +77,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
76
77
|
requirements:
|
77
78
|
- - ">="
|
78
79
|
- !ruby/object:Gem::Version
|
79
|
-
version: 2.
|
80
|
+
version: 2.6.0
|
80
81
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
81
82
|
requirements:
|
82
83
|
- - ">="
|
83
84
|
- !ruby/object:Gem::Version
|
84
85
|
version: '0'
|
85
86
|
requirements: []
|
86
|
-
rubygems_version: 3.
|
87
|
+
rubygems_version: 3.3.7
|
87
88
|
signing_key:
|
88
89
|
specification_version: 4
|
89
90
|
summary: Easily rerun failed tests with Minitest
|