1.0.3 • Published 5 years ago

fail-to-pr v1.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

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

  1. Install it:
$ yarn add --dev fail-to-pr
  1. Wrap your test script in package.json:
-    "cy:run": "cypress run",
+    "cy:run": "fail-to-pr cypress run",
  1. Create a GitHub token (with repo scope)

  2. 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.

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago