Skip to content

CLI: visualci test exports VISUALCI_MODE - #34

Merged
ndbroadbent merged 1 commit into
mainfrom
cli-mode
Dec 2, 2026
Merged

ndbroadbent merged 1 commit into
mainfrom
cli-mode

Conversation

@ndbroadbent

Copy link
Copy Markdown
Member

visualci test exports VISUALCI_MODE (local or ci) to the test command, as the build was created: local unless a CI provider is detected, the same detection as build create, or --mode. Integrations can then choose per-test failures (local) or leaving changes to review (CI) by mode.

Until now they could only go by whether VISUALCI_BUILD_ID was set, and that's set locally too under visualci test. The Laravel Rust crate is the first to need this: under visualci test on a laptop, its tests didn't fail on changes.

  • run_tests takes the mode and sets it next to VISUALCI_BUILD_ID. The unit test checks both values reach the command.
  • CLI 0.2.12. The docs (the visualci test reference and the local runs page) follow in the pin commit once it's released, and the Laravel Rust page (Docs: Laravel Rust (snapshot-testing-laravel) (sc-8502) #33) follows once the crate reads it.

Review: no screenshots change.

…build was created) to the tests, so integrations choose per-test failures by mode rather than by whether VISUALCI_BUILD_ID is set
@visualci-com

visualci-com Bot commented Dec 2, 2026

Copy link
Copy Markdown

VisualCI

docspring/visualci · build #146 · 302 unchanged · no changes

This PR vs base: nothing since #142, across 1 build

Updated as builds change. Agents can review with VisualCI's MCP tools.

@ndbroadbent
ndbroadbent merged commit 102c209 into main Dec 2, 2026
10 checks passed
@ndbroadbent
ndbroadbent deleted the cli-mode branch December 2, 2026 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant