QualityGraph CLI

Analyze test coverage from your terminal. One command to scan your repo, identify test types, and push results to your QualityGraph dashboard.

Install

bash
curl -fsSL https://qualitygraph.harnessqa.dev/cli-dist/install.sh | bash

Requires Node.js 18+. Installs to ~/.qualitygraph/bin/qg.

Quick start

1. Create an account or sign in

terminal
qg login -e you@company.com -p your-password

2. Navigate to your repo and analyze

terminal
cd /path/to/your/project
qg analyze

3. View results in your dashboard

terminal
# Open https://qualitygraph.harnessqa.dev

Commands

CommandDescription
qg login -e <email> -p <pass>Authenticate with QualityGraph
qg analyzeScan repo and upload results
qg analyze --localScan repo without uploading
qg statusShow current login status
qg logoutClear stored credentials

What it detects

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

Supported languages

TypeScriptJavaScriptPythonGoJavaKotlinRubyRustC#SwiftPHPC/C++

Example output

$ 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.