Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to automatically take screenshot on assertion failure #4

Open
ryanzec opened this issue Aug 7, 2013 · 5 comments
Open

Ability to automatically take screenshot on assertion failure #4

ryanzec opened this issue Aug 7, 2013 · 5 comments
Assignees
Milestone

Comments

@ryanzec
Copy link
Contributor

ryanzec commented Aug 7, 2013

If a test fails, there is a good chance you want to see what the site/application looked like for that failure. It would be nice to be able to have a configure that would allow on a global level to enable or disable such a feature.

@boonkerz
Copy link

boonkerz commented Aug 7, 2013

like this.

test
   .fail(function(test) {
     test.screenshot();
   })
   .open(..)
   .assert(..)
   .done();

@ghost ghost assigned asciidisco Aug 15, 2013
@asciidisco
Copy link
Member

I don´t believe that it would be a good decision to inject the complete test object into the fail method, but I like the API. Also, when I have added setup & teardown methods, this could be globally set for a complete testsuite.

Will consider to add it for Milestone 0.0.3.

@gskachkov
Copy link

+1

@ixisio
Copy link

ixisio commented May 15, 2014

might be an interesting feature! +1 for this.
I'll write down a few thoughts this weekend, how this could be solved

@asciidisco
Copy link
Member

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants