maxitest 1.5.7 → 2.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/Readme.md +3 -3
- data/lib/maxitest/autorun.rb +17 -4
- data/lib/maxitest/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c634c838410c37d42cb7e23b00a128abd72b4592
|
4
|
+
data.tar.gz: 396ebef4ca0510f300a385c92d1526c04a2d123a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9a2b8ed41f5096a5cdbcd6c5af846ed160941aa37cfbedf1d79975438d94153b04659322aed7422b5bdedf7118750338424f61e0106b0920d2a2c32f9b7822b
|
7
|
+
data.tar.gz: 0959d1aabf189eec87ec8532f179ac1bf50274c3cf83259bf6288fc5e674cdfa72f6eeef26ad4f5ee34b6b37b2afdd6ee248e1393378d25ce22ec6ca7a886396
|
data/Readme.md
CHANGED
@@ -5,11 +5,11 @@ Minitest + all the features you always wanted.
|
|
5
5
|
Features
|
6
6
|
========
|
7
7
|
- **Ctrl+c** stops tests and prints failures
|
8
|
-
- **pastable rerun snippet** for failures
|
8
|
+
- **pastable rerun snippet** for failures (disabled/integrated on rails 5)
|
9
9
|
- multiple before & after blocks
|
10
10
|
- **around** blocks `around { |t| Dir.chdir(...) { t.call } }`
|
11
|
-
- **red-green** output
|
12
|
-
- `mtest` executable to **run by line number** and by folder
|
11
|
+
- **red-green** output (disabled/integrated on rails 5)
|
12
|
+
- `mtest` executable to **run by line number** and by folder (disabled/integrated on rails 5)
|
13
13
|
- full backtrace for errors and assertions with verbose (`-v`)
|
14
14
|
- `let!`
|
15
15
|
- `let_all` execute once for all tests in a class and it's subclasses
|
data/lib/maxitest/autorun.rb
CHANGED
@@ -1,6 +1,13 @@
|
|
1
1
|
require "minitest"
|
2
2
|
|
3
|
-
|
3
|
+
disabled_for_rails = begin
|
4
|
+
require 'rails/version'
|
5
|
+
Rails::VERSION::MAJOR >= 5
|
6
|
+
rescue LoadError
|
7
|
+
ENV['MAXITEST_ENABLED_WITH_RAILS5'] # a way to get this back when on rails 5
|
8
|
+
end
|
9
|
+
|
10
|
+
if !disabled_for_rails && $stdout.tty? # rails 5 add default red/green output
|
4
11
|
require "maxitest/vendor/rg"
|
5
12
|
Minitest.extensions << "rg"
|
6
13
|
Minitest::RG.rg!
|
@@ -8,10 +15,16 @@ end
|
|
8
15
|
|
9
16
|
require "maxitest/verbose_backtrace"
|
10
17
|
|
11
|
-
|
12
|
-
|
18
|
+
unless disabled_for_rails # rails 5 breaks line support + has it's own line number runner
|
19
|
+
require "maxitest/vendor/line"
|
20
|
+
Minitest.extensions << "line"
|
21
|
+
end
|
13
22
|
|
14
|
-
|
23
|
+
if disabled_for_rails
|
24
|
+
require "minitest/spec"
|
25
|
+
else # rails 5 causes this to trigger a duplicate run
|
26
|
+
require "minitest/autorun"
|
27
|
+
end
|
15
28
|
require "maxitest/vendor/around"
|
16
29
|
require "maxitest/trap"
|
17
30
|
require "maxitest/let_bang"
|
data/lib/maxitest/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: maxitest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.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: 2016-
|
11
|
+
date: 2016-05-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|