diff --git a/README.md b/README.md index 9f7b0bd..14c4b5b 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,44 @@ -# @smooai/testing + -Smoo AI Testing SDK — CLI and library for interacting with the Smoo AI Testing API. +
-Report test results, manage test runs, cases, environments, and deployments. ++ CLI and library for the Smoo AI Testing API — report test results and manage runs, cases, environments, and deployments. +
+ + + ++ Features · + Install · + Usage · + CLI · + Platform +
+ +--- + +> Report test results to Smoo AI and manage your test program from the command line or in code. Pipe CTRF reports straight from CI, or drive runs, cases, environments, and deployments programmatically. + +## ✨ Features + +- Report CTRF test results from any test runner, straight from CI +- Manage test runs, cases, environments, and deployments +- Use it as a CLI or as a typed TypeScript library +- `--json` output on every command (auto-enabled when piped) +- M2M auth via `login` or environment variables for CI/CD + +## 📦 Install ```bash npm install @smooai/testing @@ -12,9 +46,9 @@ npm install @smooai/testing pnpm add @smooai/testing ``` -## Quick Start +## 🚀 Usage -### CLI: Report test results +### CLI: report test results ```bash # Authenticate @@ -29,7 +63,7 @@ npx @smooai/testing runs report ctrf-report.json \ --name "PR #42 Tests" ``` -### Library: Programmatic usage +### Library: programmatic usage ```typescript import { SmooTestingClient } from '@smooai/testing'; @@ -51,7 +85,7 @@ const runs = await client.listRuns({ status: 'failed' }); const envs = await client.listEnvironments(); ``` -## CLI Commands +## 📖 CLI commands ### Authentication @@ -61,7 +95,7 @@ smooai-testing logout smooai-testing status ``` -### Test Runs +### Test runs ```bash smooai-testing runs create --name "Run Name" [--environment prod] [--tool vitest] @@ -71,7 +105,7 @@ smooai-testing runs update+ Built by Smoo AI — AI built into every product. +