minitest-rerun-failed 0.2.0 → 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/.ruby-version +1 -1
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +2 -2
- data/README.md +27 -6
- data/lib/minitest_rerun_failed/version.rb +1 -1
- data/minitest_rerun_failed.gemspec +2 -2
- metadata +11 -11
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/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
1
|
+
3.1.1
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
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
|
@@ -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.2.
|
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
|
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
84
|
- !ruby/object:Gem::Version
|
85
85
|
version: '0'
|
86
86
|
requirements: []
|
87
|
-
rubygems_version: 3.
|
87
|
+
rubygems_version: 3.3.7
|
88
88
|
signing_key:
|
89
89
|
specification_version: 4
|
90
90
|
summary: Easily rerun failed tests with Minitest
|