Module: Cyperful::SystemTestHelper

Defined in:
lib/cyperful/framework_injections.rb

Overview

The Minitest test helper. TODO: support other test frameworks like RSpec

Instance Method Summary collapse

Instance Method Details

#setupObject



6
7
8
9
# File 'lib/cyperful/framework_injections.rb', line 6

def setup
  Cyperful.setup(self.class, self.method_name)
  super
end

#take_failed_screenshotObject



22
23
24
# File 'lib/cyperful/framework_injections.rb', line 22

def take_failed_screenshot
  nil
end

#teardownObject



11
12
13
14
15
16
17
18
# File 'lib/cyperful/framework_injections.rb', line 11

def teardown
  error = passed? ? nil : failure

  error = error.error if error.is_a?(Minitest::UnexpectedError)

  Cyperful.teardown(error)
  super
end