Module: Minitest::Reporters::Screenshot
- Defined in:
- lib/minitest/reporters/screenshot.rb
Instance Method Summary collapse
-
#screenshot(file_name) ⇒ Object
Use this method to explicitly create screenshots during your tests.
Instance Method Details
#screenshot(file_name) ⇒ Object
Use this method to explicitly create screenshots during your tests
6 7 8 |
# File 'lib/minitest/reporters/screenshot.rb', line 6 def screenshot(file_name) save_screenshot File.join('test/screenshots', "#{file_name}.png") end |