top_tests 0.0.4 → 0.0.5
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/Gemfile.lock +1 -1
- data/lib/top_tests/version.rb +1 -1
- data/lib/top_tests.rb +4 -3
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6500236650bc3f1c6babb8f418a2bcc79f50c4d
|
4
|
+
data.tar.gz: 6828b2b696aabce0d0de989cec4e61f216bf9e5e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a75e5a94e7ca70f614408d4fc059ae64b91ec16c6269cfe76a0924b0df403933bbfb8d474d88fd84e650c99373794438e712afb73553258bfd0ecf635675cf8
|
7
|
+
data.tar.gz: ca955f0edf7fa624230c54bb72558fd89e65119fe1e28b5c142a05283e708e5e02f1e96cc496d4f0288492e6b66ef926814f9c5e5212607ec0b6ffa55fe4f4e2
|
data/Gemfile.lock
CHANGED
data/lib/top_tests/version.rb
CHANGED
data/lib/top_tests.rb
CHANGED
@@ -22,9 +22,10 @@ module TopTests
|
|
22
22
|
|
23
23
|
def after_teardown
|
24
24
|
super
|
25
|
-
if @timer_started_at
|
26
|
-
|
27
|
-
self.class
|
25
|
+
if @timer_started_at # Unset when a setup hook fails before top test.
|
26
|
+
# Instance variable @__name__ is used prior to minitest 5.
|
27
|
+
test_name = "#{self.class}##{@__name__ || name}"
|
28
|
+
self.class.tests_durations << [test_name, Time.now - @timer_started_at]
|
28
29
|
end
|
29
30
|
end
|
30
31
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: top_tests
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexis Bernard
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-05-20 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Top tests lists the 10 slowest tests after execution
|
14
14
|
email:
|
@@ -17,7 +17,7 @@ executables: []
|
|
17
17
|
extensions: []
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
|
-
- .gitignore
|
20
|
+
- ".gitignore"
|
21
21
|
- Gemfile
|
22
22
|
- Gemfile.lock
|
23
23
|
- LICENSE
|
@@ -38,17 +38,17 @@ require_paths:
|
|
38
38
|
- lib
|
39
39
|
required_ruby_version: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
|
-
- -
|
41
|
+
- - ">="
|
42
42
|
- !ruby/object:Gem::Version
|
43
43
|
version: '0'
|
44
44
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- -
|
46
|
+
- - ">="
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: '0'
|
49
49
|
requirements: []
|
50
50
|
rubyforge_project:
|
51
|
-
rubygems_version: 2.
|
51
|
+
rubygems_version: 2.2.1
|
52
52
|
signing_key:
|
53
53
|
specification_version: 4
|
54
54
|
summary: Top tests lists the 10 slowest tests after execution
|