Report

The report command fetches test execution data from qTest and sends it to SeaLights. It processes both automated and manual test results and separates output by Test Design mapping status.

npm run report

Options

Option
Description
Default

--days <n>

Number of days to look back for test executions

7

--full

Force a complete report, ignoring previously-reported timestamps

Off (incremental)

--project <name>

Filter by a specific qTest project name

All projects

--stage <name>

Filter by a specific test stage name

All stages

--lab <id>

Filter by a specific lab ID

All labs

--debug

Enable verbose logging

Off

--help

Show all available options

Incremental vs. Full Mode

By default the report runs in incremental mode: each test stage tracks the timestamp of its last successful report. Subsequent runs only send tests executed since that timestamp, preventing duplicate submissions to SeaLights.

Use --full to override this and send all tests in the specified date range. This is useful when re-reporting after a configuration change or data issue.

# Incremental (default) — only new tests since last report
npm run report

# Incremental with extended fallback for stages not yet reported
npm run report -- --days 14

# Full report for the last 7 days
npm run report -- --full

# Full report for the last 30 days
npm run report -- --full --days 30

See Incremental Reporting for details on how this works.

Common Scenarios

Output Structure

Reports are written to a date-stamped folder under output/:

Folder
Contents

mapped/automation/

Automated test runs whose stage was resolved from Test Design

mapped/manual/

Manual test runs whose stage was resolved from Test Design

unmapped/automation/

Automated test runs whose stage fell back to testStageMapping path matching

unmapped/manual/

Manual test runs using path fallback

circle-check

Each JSON file contains test execution data grouped by lab ID, ready to be consumed by SeaLights.

Handling "Unknown User" Warnings

If the report output shows warnings like ⚠️ Unknown user: 12345, that user's executions were found but have no lab ID assigned. Run npm run manage-user-mapping to assign them a lab ID.

See User Lab Mapping for details.

Last updated

Was this helpful?