fail-to-pr
v1.0.3
Published
Post the relevant part of your broken CI build to the PR that triggered it
Downloads
6
Readme
I made this package so I can see the snapshots tests that failed in a travis build.
Currently it handles only a very specific use case: failed cypress-image-snapshot tests in travis (probably jest-image-snapshot too). But I want to add more features, so send an issue or a PR if you want to use it for something else or need more customization.
Follow @pomber for updates
Usage
- Install it:
$ yarn add --dev fail-to-pr
- Wrap your test script in package.json:
- "cy:run": "cypress run",
+ "cy:run": "fail-to-pr cypress run",
Create a GitHub token (with
repo
scope)Add the token as "GH_TOKEN" env var in travis (make sure to leave the "Display value in build log" disabled)
License
Released under MIT license.