class Dotpretty::Reporters::Browser
Attributes
http_client[RW]
tests[RW]
Public Class Methods
new(http_client:)
click to toggle source
# File lib/dotpretty/reporters/browser.rb, line 5 def initialize(http_client:) self.http_client = http_client end
Public Instance Methods
build_completed()
click to toggle source
# File lib/dotpretty/reporters/browser.rb, line 9 def build_completed end
build_failed(failure_details)
click to toggle source
# File lib/dotpretty/reporters/browser.rb, line 15 def build_failed(failure_details) end
build_failed_to_start(raw_input_inlines)
click to toggle source
# File lib/dotpretty/reporters/browser.rb, line 12 def build_failed_to_start(raw_input_inlines) end
build_started()
click to toggle source
# File lib/dotpretty/reporters/browser.rb, line 18 def build_started http_client.post_json("/build_started") end
show_test_summary(test_summary)
click to toggle source
# File lib/dotpretty/reporters/browser.rb, line 22 def show_test_summary(test_summary) http_client.post_json("/update_results", { tests: tests }) end
starting_tests()
click to toggle source
# File lib/dotpretty/reporters/browser.rb, line 28 def starting_tests self.tests = [] end
test_failed(name:, details:)
click to toggle source
# File lib/dotpretty/reporters/browser.rb, line 32 def test_failed(name:, details:) tests << { details: details, name: name, result: "failed" } end
test_passed(name:)
click to toggle source
# File lib/dotpretty/reporters/browser.rb, line 40 def test_passed(name:) tests << { name: name, result: "passed" } end
test_skipped(name:)
click to toggle source
# File lib/dotpretty/reporters/browser.rb, line 47 def test_skipped(name:) tests << { name: name, result: "skipped" } end