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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d0adee6548c17dd8b6fb436dda43949d8cebac77cc19b75ae40ab00f7f58b5c7
4
- data.tar.gz: ee75435eeecbcdddb007aaa8a4d40f32c863ed71472c4d6cc472741523cd3ac6
3
+ metadata.gz: 485404465452e991f7b27055a31d394c3d7dc0c06a4823403c48fde77f7fa03b
4
+ data.tar.gz: 77aa5098324bf9e671be67647ab169e7c293b897a0933a58824173b87b0a6b40
5
5
  SHA512:
6
- metadata.gz: 60b70ba99a8b265e329d48e83b21e1198ca8873ebcafe5c6d121f87aceaed48c4d328e4acc3a371bf1fc0014d194d04485fe926c1fbbbaec20109653b2b0231d
7
- data.tar.gz: ad662447717f143476212c7fc411e173bf5ce00cc20dcb77ac8dc4ade003416f15789092a73fe81e043b462d5cd07b8b5014f08dd0c725a9e229a672b4a74c36
6
+ metadata.gz: a42145d916f118f4c210d2ae55b729e4a10f537b75956bb9c2c14d928189c08776867736aa882711cb1fa939e7e56e80b0d0826eb3dff1d307ba4b8114a6056a
7
+ data.tar.gz: 1e4bec4e76d5a64706e91bdebfd3252a8d7848261373a808d7d701a5a129fca42c2ced7b020208b3f15e526c8b80d22931713dfa3de223da286b67f7b64c9e4f
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.0.2
1
+ 3.1.1
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## [0.2.1] - 2022-12-04
2
+ - Set dependency versions with >= so they do not enforce old versions
3
+
1
4
  ## [0.2.0] - 2021-09-12
2
5
  - Add support for Ruby 2.6
3
6
 
data/Gemfile.lock CHANGED
@@ -2,8 +2,8 @@ PATH
2
2
  remote: .
3
3
  specs:
4
4
  minitest-rerun-failed (0.2.0)
5
- minitest (~> 5.14.4)
6
- minitest-reporters (~> 1.4.3)
5
+ minitest (>= 5.0.0)
6
+ minitest-reporters (>= 1.4.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
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
- ## Goals
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 then, use something like
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 'minitest_rerun_failed'
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 minitest_rerun_failed
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MinitestRerunFailed
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
@@ -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", "~> 5.14.4"
31
- spec.add_dependency "minitest-reporters", "~> 1.4.3"
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.0
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: 2021-09-13 00:00:00.000000000 Z
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.14.4
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.14.4
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.3
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.3
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.2.22
87
+ rubygems_version: 3.3.7
88
88
  signing_key:
89
89
  specification_version: 4
90
90
  summary: Easily rerun failed tests with Minitest