Subset builds
Run subset builds to upload a partial test run without affecting the baseline of screenshots it didn't cover.
Subset builds are designed for CI runs that don't execute the full E2E test suite on a branch. When a build is marked as subset, Argos ignores removed screenshots and only notifies you about changed and added screenshots from the tests you did run.
This is helpful for speeding up feature-branch validation while still getting reliable visual feedback from the relevant tests. It's a key ingredient of pipelines where a task cache decides which suites run — see Cached CI pipelines (Turborepo, Nx) for the full setup.
Enable subset builds
You can enable subset builds in any Argos SDK or the CLI.
Environment variable
Set the environment variable ARGOS_SUBSET to "true" in your CI configuration.
steps:
- name: Run tests
run: npm test
env:
ARGOS_SUBSET: "true"CLI
Use the --subset flag with the CLI.
npm exec -- argos upload --subset ./screenshotsyarn run argos upload --subset ./screenshotspnpm exec -- argos upload --subset ./screenshotsbun x argos upload --subset ./screenshotsSDK option
Most SDKs expose a subset option on the upload configuration.
Examples
Playwright
For Playwright, simply set ARGOS_SUBSET=true in your CI job. The reporter will mark the build as a subset build.
Cypress
For Cypress, set ARGOS_SUBSET=true in your CI job that runs Cypress and uploads screenshots.
Troubleshooting / FAQ
Last updated
Was this helpful?