minitest-flyordie 0.0.1 → 0.0.2
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/.gitignore +36 -0
- data/README.md +4 -4
- data/lib/minitest/flyordie.rb +2 -2
- data/lib/minitest/flyordie/version.rb +1 -1
- data/test/_flyordie_reporter_test.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d1b180ba7d5ee77d888441a4173d0674fcb85234
|
4
|
+
data.tar.gz: 790ece6d18e9e96931de7f9b2b468ae6437656ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8062d34f3c861a8c61d46dfcb2d0eacf7ff6ca4c10bb882312d6cdedd652aecea29fed8c7ed844f07f73d88bf33c0ab9c90b9c199d119d79575af443c5c3c120
|
7
|
+
data.tar.gz: ec8b105e74f4e1d420196795ca97aaba3c55f0fca17758235e0ce65995ff9b4f79eda9c4fb10fd82f64731220c566aa9686b9fc130cd40ef672fe619906beb5a
|
data/.gitignore
CHANGED
@@ -12,3 +12,39 @@
|
|
12
12
|
*.o
|
13
13
|
*.a
|
14
14
|
mkmf.log
|
15
|
+
|
16
|
+
*.gem
|
17
|
+
*.rbc
|
18
|
+
/.config
|
19
|
+
/coverage/
|
20
|
+
/InstalledFiles
|
21
|
+
/pkg/
|
22
|
+
/spec/reports/
|
23
|
+
/test/tmp/
|
24
|
+
/test/version_tmp/
|
25
|
+
/tmp/
|
26
|
+
|
27
|
+
## Specific to RubyMotion:
|
28
|
+
.dat*
|
29
|
+
.repl_history
|
30
|
+
build/
|
31
|
+
|
32
|
+
## Documentation cache and generated files:
|
33
|
+
/.yardoc/
|
34
|
+
/_yardoc/
|
35
|
+
/doc/
|
36
|
+
/rdoc/
|
37
|
+
|
38
|
+
## Environment normalisation:
|
39
|
+
/.bundle/
|
40
|
+
/vendor/bundle
|
41
|
+
/lib/bundler/man/
|
42
|
+
|
43
|
+
# for a library or gem, you might want to ignore these files since the code is
|
44
|
+
# intended to run in multiple environments; otherwise, check them in:
|
45
|
+
# Gemfile.lock
|
46
|
+
# .ruby-version
|
47
|
+
# .ruby-gemset
|
48
|
+
|
49
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
50
|
+
.rvmrc
|
data/README.md
CHANGED
@@ -21,16 +21,16 @@ And then execute:
|
|
21
21
|
|
22
22
|
## Usage
|
23
23
|
|
24
|
-
Use the `--maxslow
|
25
|
-
Use the `--slowtime
|
24
|
+
Use the `--maxslow=COUNT` flag to set the maximum allowed number of slow tests
|
25
|
+
Use the `--slowtime=DURATION` flag to specify the duration for a tests to be slow, in milliseconds
|
26
26
|
|
27
27
|
Direct invocation:
|
28
28
|
|
29
|
-
`ruby test_thing.rb --maxslow
|
29
|
+
`ruby test_thing.rb --maxslow=3 --slowtime=30`
|
30
30
|
|
31
31
|
Via rake test runner:
|
32
32
|
|
33
|
-
`TESTOPTS='--maxslow
|
33
|
+
`TESTOPTS='--maxslow=4 --slowtime=42' rake test`
|
34
34
|
|
35
35
|
## Credits
|
36
36
|
|
data/lib/minitest/flyordie.rb
CHANGED
@@ -29,7 +29,7 @@ module Minitest
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def passed?
|
32
|
-
slowtests.length
|
32
|
+
slowtests.length <= maxslow
|
33
33
|
end
|
34
34
|
|
35
35
|
def report
|
@@ -38,7 +38,7 @@ module Minitest
|
|
38
38
|
puts "#{slowtests.count} tests exceeded the maximum duration of #{slowtime} msec"
|
39
39
|
puts
|
40
40
|
self.slowtests.each do |st|
|
41
|
-
puts "#{sprintf("%
|
41
|
+
puts "#{sprintf("%7.2f", st.time*1000)} msec ----- #{st.name}"
|
42
42
|
end
|
43
43
|
puts
|
44
44
|
end
|