Class: TestmetricsRspec
- Inherits:
-
RSpec::Core::Formatters::BaseFormatter
- Object
- RSpec::Core::Formatters::BaseFormatter
- TestmetricsRspec
- Includes:
- Shared
- Defined in:
- lib/testmetrics_rspec/rspec2.rb,
lib/testmetrics_rspec/rspec3.rb,
lib/testmetrics_rspec/shared.rb,
lib/testmetrics_rspec/persist.rb,
lib/testmetrics_rspec/parallel_tests.rb
Overview
The RSpec 3 formatter
Defined Under Namespace
Modules: Persist, Shared Classes: ParallelTests
Constant Summary
Constants included from Shared
Shared::BRANCH_VARS, Shared::SHA_VARS
Instance Method Summary collapse
Methods included from Shared
#ci_platform, #correct_var, #format, #git_branch, #git_sha, #post, #results, #run_time_in_microseconds, #start, #starting_results, #travis_branch
Instance Method Details
#dump_summary(notification) ⇒ Object
17 18 19 20 21 |
# File 'lib/testmetrics_rspec/rspec2.rb', line 17 def dump_summary(duration, example_count, failure_count, pending_count) @results[:total_run_time] = run_time_in_microseconds(duration) TestmetricsRspec::Persist.call(@results) super end |
#stop(notification) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/testmetrics_rspec/rspec2.rb', line 5 def stop @results = results do examples.map do |example| format(example.full_description, example.execution_result[:run_time], example.execution_result[:status].to_sym) end end super end |