Skip to content

Instantly share code, notes, and snippets.

@buger
Last active December 25, 2015 05:09
Show Gist options
  • Save buger/6922051 to your computer and use it in GitHub Desktop.
Save buger/6922051 to your computer and use it in GitHub Desktop.
TestUnit CircleCI screenshots
def teardown
@driver.save_screenshot File.join(ENV['CIRCLE_ARTIFACTS'], Time.now.strftime("%F_%H%M%S") + "_" + @method_name + ".png")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment