minitest-flyordie 0.0.1 → 0.0.2

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
  SHA1:
3
- metadata.gz: 28addd70acbe2d5ac79b1edc5f7731b31ee335b2
4
- data.tar.gz: af9671b96c82c93ab4bcd782648222d8b7da9516
3
+ metadata.gz: d1b180ba7d5ee77d888441a4173d0674fcb85234
4
+ data.tar.gz: 790ece6d18e9e96931de7f9b2b468ae6437656ea
5
5
  SHA512:
6
- metadata.gz: 65b647cc5a187468bcb4430c7de3854d49d8c723d34a521f2e02228c487564bfdaff7a02e294c0fe33051f130a6327238fde8136ef4d2aa8199c15f51fb47102
7
- data.tar.gz: 2701fdf468f4406f1baa433e16e2a9ce993f7dab0b0822ce5250d0e9c8c9e2be61cbea0aeea672161effa943c6a9b48f7a513f0fa6c7575a43f27e31072fe5c1
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 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
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 3 --slowtime 30`
29
+ `ruby test_thing.rb --maxslow=3 --slowtime=30`
30
30
 
31
31
  Via rake test runner:
32
32
 
33
- `TESTOPTS='--maxslow 4 --slowtime 42' rake test`
33
+ `TESTOPTS='--maxslow=4 --slowtime=42' rake test`
34
34
 
35
35
  ## Credits
36
36
 
@@ -29,7 +29,7 @@ module Minitest
29
29
  end
30
30
 
31
31
  def passed?
32
- slowtests.length < maxslow
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("%5.2f", st.time*1000)} msec ----- #{st.name}"
41
+ puts "#{sprintf("%7.2f", st.time*1000)} msec ----- #{st.name}"
42
42
  end
43
43
  puts
44
44
  end
@@ -1,5 +1,5 @@
1
1
  module Minitest
2
2
  module Flyordie
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
4
4
  require 'minitest/flyordie'
5
5
 
6
6
  describe "slow runs" do
7
- 5.times do
7
+ 5.times do |t|
8
8
  it "is slow" do
9
9
  sleep(90/1000.0)
10
10
  assert true
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-flyordie
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Stewart