Skip to main content

TheReportStack CLI


A powerful CLI and Python package to seamlessly upload your automated test execution reports to the TheReportStack Dashboard.


⚡ Features

  • Upload Instantly: Upload PyTest, Cucumber, and Newman JSON reports directly to your TheReportStack Dashboard project.
  • Smart Tags: Supports parsing complex tag expressions (e.g. ["@smoke and @wallet"]).
  • Flexible Authentication: Authenticate via project tokens, Environment Variables, or email & password.
  • Zero Coding Required: Configure once with a simple json file and trigger from anywhere in your CI/CD pipelines.

📦 Installation

Install the package via pip:

pip install thereportstack

🚀 Quick Start

1. Initialize Configuration

Navigate to your project directory and run the initialization command. This creates the configuration structure.

thereportstack init

This generates a thereportstack/config.json file in your current directory with default values.

You can also configure the project directly from the command line by passing arguments. This will instantly populate or update the config.json file:

thereportstack init --projectId YOUR_PROJECT_ID --tags "smoke" "regression" --typeOfReport pytest

2. Configure Your Project

Edit the generated thereportstack/config.json with your project's specifics.

{
  "typeOfReport": "pytest",
  "projectId": "YOUR_PROJECT_ID",
  "file": "path/to/report.json",
  "testEnv": "QA",
  "testType": "WEB",
  "tags": ["smoke", "regression"],
  "browser": "chrome",
  "browserVersion": "latest",
  "iterationId": "Batch1",
  "baseUrl": "https://app.thereportstack.com/api/v1/public"
}

Don't want to expose your token in code? Remove the "token" field from the config and export it as an environment variable in your CI/CD tool:

export DASHBOARD_TOKEN="YOUR_API_TOKEN"

3. Upload Report

Once your config is set and your testing framework has generated the JSON report, run:

thereportstack start

That's it! 🚀 Your test execution report is now beautifully cataloged on the TheReportStack Dashboard.

🔧 Configuration Reference

Parameter Description Default Value
typeOfReport The framework generating the report (pytest, cucumber, newman, normal) pytest
projectId Your unique project ID from the TheReportStack dashboard ""
file Relative or absolute path to the generated JSON test report report.json
testEnv Environment where the test triggered (QA, Staging, Prod, etc.) QA
testType Type of Testing (WEB, API, MOBILE) WEB
tags Array of strings representing your test suites/scenario tags (["smoke", "regression"]) ["smoke"]
browser Name of the executed browser (chrome, firefox, safari, edge) chrome
browserVersion Version of the browser latest
token Personal access token. Overridden by the DASHBOARD_TOKEN environment variable if present. ""

🔑 Authentication Methods

TheReportStack gives you several options for secure authentication:

  1. Config Token: Place "token": "YOUR_TOKEN" directly in the config.json.
  2. Environment Variable: Export DASHBOARD_TOKEN on your machine or CI/CD runner.
  3. Email & Password: You can provide "email" and "password" fields in config.json and the CLI will automatically securely negotiate an authentication token. (Token/Environment Token takes precedent).

✨ Tag Parsing Support

To make QA tagging flexible, thereportstack CLI automatically normalizes boolean-style or nested BDD tags coming from your project definitions before sending them to the dashboard:

  • ["@smoke and @wallet"] ➡️ ["smoke", "wallet"]
  • ["smoke, regression"] ➡️ ["smoke", "regression"]
  • ["(checkout)"] ➡️ ["checkout"]

🤝 Support

If you encounter any issues integrating this into your Python, Node, Java, or Ruby pipelines, please reach out directly to the TheReportStack maintainers.

Release files for thereportstack 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for thereportstack 1.0.3
File Size Uploaded
thereportstack-1.0.3.tar.gz 8.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for thereportstack 1.0.3
File Interpreter ABI Platform
thereportstack-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 15.9 kB

Release files / thereportstack-1.0.3.tar.gz

Download URL thereportstack-1.0.3.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
eeedba4ea636229dc18e851689427143e480d757e3d8ce4d4f97366d09c35fa8
BLAKE2b-256 checksum
How to use checksums
86ed173fcbb4bac21aeb7e376cbe74b7f1525af6be5774d761ea17b7e5021fba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.0

Release files / thereportstack-1.0.3-py3-none-any.whl

Download URL thereportstack-1.0.3-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6232a38a2d2cc9babe5b3b2927b9d35c0ff1d78d01defe41d97f8486b8fda1cc
BLAKE2b-256 checksum
How to use checksums
9ff99498a3894a9503e2200a58478c2b054c43ba4ee861d5b95e962c1da8a69a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.0

Release history Release notifications | RSS feed

1.0.4

2 release files

This release

1.0.3 This release

2 release files

1.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page