@lidofinance/bochqa-reporter
v1.1.0
Published
Playwright reporter that uploads the launch and every test attempt to ClickHouse (`bochqa.launches`, `bochqa.tests`) over the HTTP interface.
Readme
@lidofinance/bochqa-reporter
Playwright reporter that uploads the launch and every test attempt to ClickHouse
(bochqa.launches, bochqa.tests) over the HTTP interface.
It does nothing without BOCHQA_URL and never fails the run — an upload error is only logged.
Usage
// playwright.config.ts
reporter: [
[
'@lidofinance/bochqa-reporter',
{ appId: 1, launchName: 'Auto Run [b:main]' },
],
],Options
| Option | Type | Description |
| ------------ | -------- | ------------------------------------ |
| appId | number | id from the bochqa.apps dictionary |
| launchName | string | optional launch name |
Environment
| Variable | Description |
| ---------------------------------------------- | -------------------------------------------------------------------- |
| BOCHQA_URL, BOCHQA_USER, BOCHQA_PASSWORD | ClickHouse HTTP endpoint and credentials |
| GH_JOB_ID | ${{ job.check_run_id }}, GitHub has no built-in env var for it |
| STAND_TYPE | environment name |
| APP_VERSION | tested app version |
| TEST_TAGS | comma-separated launch tags |
| JOB_CUSTOM_NAME | job name, falls back to GITHUB_JOB |
| QASE_TESTOPS_RUN_ID | set by the Qase reporter, used as launch_id (else GITHUB_RUN_ID) |
The Qase case id is taken from the (Qase ID: N) suffix of the test title, and
epic / feature / story — from the QaseSuite annotations.
