rspec_profiling 0.0.2 → 0.0.3
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 +8 -8
- data/README.md +1 -0
- data/lib/rspec_profiling/collectors/csv.rb +1 -0
- data/lib/rspec_profiling/collectors/database.rb +1 -0
- data/lib/rspec_profiling/example.rb +4 -0
- data/lib/rspec_profiling/run.rb +1 -0
- data/lib/rspec_profiling/version.rb +1 -1
- data/rspec_profiling.gemspec +1 -1
- data/spec/collectors/database_spec.rb +5 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZjZhODlmNmNlMDU5N2QxNTM3ZDEyMjUyMzViNWI5M2Q5ZjQ3OGU4MA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZjlhZjRiMDRiYmM0NDllNTcwMjA2M2M3M2U4MDJmZTJkNmU3NTAxNw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MDNjMmFhYzIxNmNhODcwODkxODVmYzdjNmJkYTdkYTdhZWI4YjQzYzU1Nzk0
|
10
|
+
NzU3YTI4MTU0YjU0NGNkOGY0NjliY2JhMWQ3ZTZmYjE5ZWE1YTcyM2NjZWRi
|
11
|
+
YzJlMThmZWU1Y2NmNmVlNjg0NzEzM2UyMzllMWEzNThkMTg5MDA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MjZlMjk0MTA2MjY3NzJhZTM2NmZmZmJlZTUwMjZmZjlmMzBiODFjNzRhNzAw
|
14
|
+
YTJjNTY1NjdiNGRiYmYwOWFiNjZhY2FkM2RhZTQyMjA1MDQ0MTU4Y2UxNTQ2
|
15
|
+
MDY1YTkwZmRhNTdiNTk3OWMxYTY4YmMyODBiNjEzN2MxMTQyYzg=
|
data/README.md
CHANGED
@@ -8,6 +8,7 @@ Collected attributes include:
|
|
8
8
|
- git commit SHA (or SVN revision) and date
|
9
9
|
- example file, line number and description
|
10
10
|
- example status (i.e. passed or failed)
|
11
|
+
- example exception (i.e. nil if passed, reason for failure otherwise)
|
11
12
|
- example time
|
12
13
|
- query count and time
|
13
14
|
- request count and time
|
data/lib/rspec_profiling/run.rb
CHANGED
@@ -25,6 +25,7 @@ module RspecProfiling
|
|
25
25
|
line_number: @current_example.line_number,
|
26
26
|
description: @current_example.description,
|
27
27
|
status: @current_example.status,
|
28
|
+
exception: @current_example.exception,
|
28
29
|
time: @current_example.time,
|
29
30
|
query_count: @current_example.query_count,
|
30
31
|
query_time: @current_example.query_time,
|
data/rspec_profiling.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["bae@foraker.com"]
|
11
11
|
spec.description = %q{Profile RSpec test suites}
|
12
12
|
spec.summary = %q{Profile RSpec test suites}
|
13
|
-
spec.homepage = ""
|
13
|
+
spec.homepage = "https://github.com/foraker/rspec_profiling"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
spec.files = `git ls-files`.split($/)
|
@@ -20,6 +20,7 @@ module RspecProfiling
|
|
20
20
|
description: "Some spec",
|
21
21
|
time: 100,
|
22
22
|
status: :passed,
|
23
|
+
exception: "some issue",
|
23
24
|
query_count: 10,
|
24
25
|
query_time: 50,
|
25
26
|
request_count: 1,
|
@@ -59,6 +60,10 @@ module RspecProfiling
|
|
59
60
|
expect(result.status).to eq 'passed'
|
60
61
|
end
|
61
62
|
|
63
|
+
it "records the exception" do
|
64
|
+
expect(result.exception). to eq 'some issue'
|
65
|
+
end
|
66
|
+
|
62
67
|
it "records the query count" do
|
63
68
|
expect(result.query_count).to eq 10
|
64
69
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec_profiling
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Eddy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sqlite3
|
@@ -107,7 +107,7 @@ files:
|
|
107
107
|
- rspec_profiling.gemspec
|
108
108
|
- spec/collectors/database_spec.rb
|
109
109
|
- spec/run_spec.rb
|
110
|
-
homepage:
|
110
|
+
homepage: https://github.com/foraker/rspec_profiling
|
111
111
|
licenses:
|
112
112
|
- MIT
|
113
113
|
metadata: {}
|