Install Blackbox
Show project-local installation, CLI verification, upgrade notes, and uninstall expectations.
Abstract
This page gets a repo from prerequisites to a verifiable install with the fewest moving parts.
Audience
Developers who want to know the install worked before they try a full proof run.
What Success Looks Like
- The package is installed locally.
- The CLI is reachable.
- The version or help output matches the expected binary.
- The project is ready for the first proof run.
Project-Local Install
Install the runtime/testbed package in the project that owns your system tests:
pnpm add -D @suites/blackboxAdd testcontainers packages only when your testbed uses the programmatic Testcontainers path. If your project already has Docker Compose, the first Blackbox dependency can stay focused on the kit.
Install the CLI package when you want the blackbox binary for feature files, coverage replay, and static instrumentation commands:
pnpm add -D @suites/blackbox-cliThe current Blackbox repo uses pnpm@9.15.4 and Node >=22.
Verify The CLI
pnpm exec blackbox --helppnpm exec blackbox features check --helpYou should see the features, coverage, and otel command topics. If the binary is not found, confirm that @suites/blackbox-cli is installed in the same workspace package where you run the command.
Verify The Testbed Path
The CLI does not replace your system-test command. Your project still owns the command that starts the topology and runs Playwright.
In the Blackbox showcase repository, that command is:
pnpm test:systemThat script delegates to the e2e package, builds the Blackbox package, builds the local bootstrap image, and runs Playwright.
For your own project, create an equivalent project script once the testbed config and Playwright setup are in place.
Bootstrap Image
Local development may need the OpenTelemetry bootstrap image:
pnpm build:otel-imageThat builds blackbox-otel-bootstrap:local from the bootstrap Dockerfile. Packaged or CI setups may instead pull a published image or use BLACKBOX_OTEL_IMAGE.
You do not need to add @opentelemetry/* packages, edit service Dockerfiles, or set NODE_OPTIONS by hand for the default testbed path.
Uninstall
Remove the packages you installed and delete generated artifacts if you no longer need them:
pnpm remove @suites/blackbox @suites/blackbox-cliGenerated reports usually live under .blackbox-coverage/ and can be deleted like other local test output.