module Minitest::Reporters::Screenshot

Public Instance Methods

screenshot(file_name) click to toggle source

Use this method to explicitly create screenshots during your tests @param file_name Screenshot file name without extension (png extension automatically added)

# File lib/minitest/reporters/screenshot.rb, line 6
def screenshot(file_name)
  save_screenshot File.join('test/screenshots', "#{file_name}.png")
end