-
Notifications
You must be signed in to change notification settings - Fork 290
Feature request: Automatically take screenshot when test fails #43
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
Comments
Good idea! |
Thanks. My recommendations:
|
@neoziro @melissachang - I played with this on one of our projects (created a reporter which take screenshots for failing tests). It is not 100% ready but I would be happy to help here. One nice feature: upload those screenshots (s3?) so we can see those on CI as well. WDYT? |
I like the idea of the automation behind this, and +1 to uploading to S3 for a CI debug. But as a user of jest-puppeteer, it would feel a bit of a reach to me to have this on by default and not configurable. I agree this would be a great feature to have but I could see an issue where for someone breaking a build, many unexpected images are now created which could slow down the testing process. I love the idea of this 👏 @melissachang ! So +1 to opt-in and the ability to have it configurable. |
Good point, default off is probably safest. CI integration would be awesome. |
Is anyone else working on this? If not I might try and get something working... |
@callumlocke you are welcome 😀 |
use this setupTestFrameworkScriptFile in jest config
|
This is a very desirable feature. As far as I understand, this should be done with the help of a jasmine reporter. But the version of jasmine that is used only works with synchronous calls. And this creates some problems.
|
@amid2887 if you want to getFilename and testName, the right way is:
And |
@wangtao0101 thanks for the advice - it works more stable than previous one =) |
Follow up in #131 |
Use this package: |
No description provided.
The text was updated successfully, but these errors were encountered: