rspec_profiling 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MGQ1MzhlZmZhOGNmYzE0YTI2MTgyOWEwYTZmYjNiMDc3NGE4YWJmMw==
4
+ ZjZhODlmNmNlMDU5N2QxNTM3ZDEyMjUyMzViNWI5M2Q5ZjQ3OGU4MA==
5
5
  data.tar.gz: !binary |-
6
- ZWUzMzM4ZWEwMDc4NTY1NzQyMTU3ZGQ0MTg2Y2M5NzQwMzNhMjM4OQ==
6
+ ZjlhZjRiMDRiYmM0NDllNTcwMjA2M2M3M2U4MDJmZTJkNmU3NTAxNw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- Y2E1MDhmMzkwZWU2YTEzM2NhN2I3ZDFjY2E0MWQyNzgyNzZmZDUzYThjOTk2
10
- YWE4NzJkOTNhNmVlNWRlZGQzNDEzM2E2ZDk2MGZjNDQ1MTZlNmY0MjFhNWFj
11
- YTkxMDkwMDA2YTNjNjVlZDRmNGYwZDc1MzA1ZjlmZTFmODU4YzA=
9
+ MDNjMmFhYzIxNmNhODcwODkxODVmYzdjNmJkYTdkYTdhZWI4YjQzYzU1Nzk0
10
+ NzU3YTI4MTU0YjU0NGNkOGY0NjliY2JhMWQ3ZTZmYjE5ZWE1YTcyM2NjZWRi
11
+ YzJlMThmZWU1Y2NmNmVlNjg0NzEzM2UyMzllMWEzNThkMTg5MDA=
12
12
  data.tar.gz: !binary |-
13
- Yzc3OTZkM2Y4ZjEzYzkwMmIwYjY1NjEzODFlNTM3YjhjOGM2ODkzZmU1Y2I0
14
- NGU5YjM2MDc0MTc1MTVlYzhiMDA4Mjc2NzM2MmFkNmJkMjhjOTc3YWIxZjUx
15
- OWU2ZDhmOWQzYTFmMDg5NTcxYTYyOTVmMjA2ZDMzNGRmNjg0MGU=
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
@@ -10,6 +10,7 @@ module RspecProfiling
10
10
  line_number
11
11
  description
12
12
  status
13
+ exception
13
14
  time
14
15
  query_count
15
16
  query_time
@@ -31,6 +31,7 @@ module RspecProfiling
31
31
  t.text :description
32
32
  t.decimal :time
33
33
  t.string :status
34
+ t.text :exception
34
35
  t.integer :query_count
35
36
  t.decimal :query_time
36
37
  t.integer :request_count
@@ -38,6 +38,10 @@ module RspecProfiling
38
38
  def status
39
39
  execution_result.status
40
40
  end
41
+
42
+ def exception
43
+ execution_result.exception
44
+ end
41
45
 
42
46
  def time
43
47
  execution_result.run_time
@@ -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,
@@ -1,3 +1,3 @@
1
1
  module RspecProfiling
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -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.2
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-06-30 00:00:00.000000000 Z
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: {}