Analyze test coverage from your terminal. One command to scan your repo, identify test types, and push results to your QualityGraph dashboard.
curl -fsSL https://qualitygraph.harnessqa.dev/cli-dist/install.sh | bashRequires Node.js 18+. Installs to ~/.qualitygraph/bin/qg.
1. Create an account or sign in
qg login -e you@company.com -p your-password2. Navigate to your repo and analyze
cd /path/to/your/project
qg analyze3. View results in your dashboard
# Open https://qualitygraph.harnessqa.dev| Command | Description |
|---|---|
qg login -e <email> -p <pass> | Authenticate with QualityGraph |
qg analyze | Scan repo and upload results |
qg analyze --local | Scan repo without uploading |
qg status | Show current login status |
qg logout | Clear stored credentials |
The analyzer scans your repository and classifies test files by type:
Unit
.test.ts, .spec.js, _test.go
Integration
.integration.test.ts
API
.api.test.ts, api/tests/
E2E
e2e/, cypress/, playwright/
Contract
.contract.test.ts, .pact.*
UI
Coming soon
$ qg analyze Analyzing myorg/backend-api... Scanned 1,204 files myorg/backend-api ──────────────────────────────────────────────────────────── Test Type Coverage Files Test Files Lines ──────────────────────────────────────────────────────────── UNIT 42.30% [████░░░░░░] 89/ 210 94 18240/ 43120 API 8.10% [█░░░░░░░░░] 17/ 210 12 3499/ 43120 INTEGRATION 3.33% [░░░░░░░░░░] 7/ 210 5 1438/ 43120 E2E 1.90% [░░░░░░░░░░] 4/ 210 8 820/ 43120 ──────────────────────────────────────────────────────────── Uploading to https://qualitygraph.harnessqa.dev... Uploaded! Repository: a1b2c3d4-... View at: https://qualitygraph.harnessqa.dev
QualityGraph — Cross-repository QA intelligence. Sign in or view pricing.