@onurdrsn/flakecheck
v0.1.22
Published
CLI for ingesting test reports and reviewing FlakeCheck results
Downloads
2,999
Readme
@onurdrsn/flakecheck
Official command-line interface (CLI) for FlakeCheck — the automated CI test reliability platform that eliminates false alarms, isolates flaky tests, and protects developer release velocity.
🚀 Quick Start
1. Installation
Install the CLI globally with npm:
npm install -g @onurdrsn/flakecheckOr run directly with npx:
npx @onurdrsn/flakecheck --help🛠️ Usage & Commands
Initialize Repository Configuration
Connect your project to the FlakeCheck Gateway. Create .flakecheckrc.json in your project root:
flakecheck init \
--gateway https://flakecheck.domain \
--repo owner/repo-name \
--token <YOUR_PROJECT_TOKEN>Note: Generate your repository project token from the FlakeCheck Web Dashboard under Account Settings.
Ingest Test Reports
Stream test execution output directly to FlakeCheck. Automatically detects current Git commit and branch:
# JUnit XML (Jest, Vitest, Pytest, Go, Maven, Gradle)
flakecheck ingest ./test-results/*.xml --format junit
# Jest / Vitest (JSON output)
flakecheck ingest ./jest-results.json --format jest
# Playwright Test
flakecheck ingest ./playwright-report.json --format playwright
# Go Test JSON
flakecheck ingest ./go-test.json --format goYou can also explicitly pass git metadata if running in non-standard environments:
flakecheck ingest ./results.xml --format junit --commit <GIT_SHA> --branch <BRANCH_NAME>Analyze Repository Window
Run deterministic classification across recent test runs:
# Pretty terminal output with classification breakdown
flakecheck analyze
# Inspect a larger window
flakecheck analyze --window 50
# Output raw JSON for pipeline automation
flakecheck analyze --json
# Fail CI pipeline (exit 2) if flakes are detected
flakecheck analyze --fail-on-flakeGenerate CI & Pull Request Reports
Generate formatted Markdown reports with status badges and metrics (automatically writes to $GITHUB_STEP_SUMMARY in GitHub Actions):
flakecheck report --dashboard https://flakecheck.domain/dashboardDiagnostic Health Check
Verify local configuration, gateway reachability, and backend microservice health:
flakecheck doctorManage Flakes & Quarantine
Inspect active flaky tests:
# Table output
flakecheck flakes
# JSON output
flakecheck flakes --format json
# Quarantine a problematic test
flakecheck quarantine <testId> --action add --reason "Under investigation"
# Graduate a fixed test from quarantine
flakecheck quarantine <testId> --action remove⚙️ Configuration File (.flakecheckrc.json)
The flakecheck init command creates a local .flakecheckrc.json file in your repository:
{
"gatewayUrl": "https://flakecheck.domain",
"repo": "owner/repository",
"token": "fc_xxxxxxxxxxxxxxxxxxxxxxxx"
}📄 License
MIT © Onur Dursun
