- Getting Started
- Code Review
- CI integrations
- Web Projects
- Developer Tools
- Get Notified
The simple installation of Screenshotbot should work for most teams. However, there might be certain situations where you might want to do some additional CI configuration for a better developer experience.
Usually, you'll configure the Screenshotbot CLI to run after your build. This means that if your build fails, Screenshotbot doesn't get notified.
This can lead to undesirable behavior: e.g., a Pull Request based off of the failed commit will get a Build Status error from Screenshotbot since it doesn't know how to create a report.
Instead, if you configure your CI to notify Screenshotbot when your build fails, Screenshotbot will be smart about creating a report from the previous known green build.
Just call the CLI tool with --mark-failed on failing builds. You can see an example here.
If you have a large repository and use some mechanism of target selection to run tests. (e.g. Using Buck, Bazel or Gradle Predictive Test Selection), you might have to inform Screenshotbot when you ignore a specific test target.
You can do this by providing using the `--mark-unchanged-from` for each channel that wasn't run:
~/screenshotbot/recorder --channel //my/build:target \ --mark-unchanged-from 28916047d2fc8e6e5c4670b56c6134791f5dff17
Note that we need the full commit hash. This must also be run inside of the Git repository during the CI build.
It is legal to have a chain of such markings. For instance you can mark commit foo to be unchanged from bar, and bar to be unchanged form car.