@test-bro/cli 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -14
- package/dist/index.js +1580 -344
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,18 +7,17 @@ Command-line interface for AI-powered browser testing. Generate, run, and manage
|
|
|
7
7
|
### Global Installation (Recommended)
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
npm install -g
|
|
10
|
+
npm install -g @test-bro/cli
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
### Local Development
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
|
|
17
|
-
pnpm install
|
|
18
|
-
pnpm build
|
|
19
|
-
pnpm link --global
|
|
16
|
+
npm install -g @test-bro/cli
|
|
20
17
|
```
|
|
21
18
|
|
|
19
|
+
For local CLI validation workflows (unit tests, dist smoke tests, and `npm pack` artifact testing), see [`local-cli-testing.md`](./local-cli-testing.md).
|
|
20
|
+
|
|
22
21
|
## Quick Start
|
|
23
22
|
|
|
24
23
|
### 1. Authenticate
|
|
@@ -143,12 +142,12 @@ Authenticate with TestBro API.
|
|
|
143
142
|
testbro login --token tb_live_xxxxx
|
|
144
143
|
|
|
145
144
|
# Custom API URL
|
|
146
|
-
testbro login --token tb_live_xxxxx --url https://
|
|
145
|
+
testbro login --token tb_live_xxxxx --url https://testbro.dev
|
|
147
146
|
```
|
|
148
147
|
|
|
149
148
|
**Options:**
|
|
150
149
|
- `-t, --token <token>`: API token from your TestBro account
|
|
151
|
-
- `-u, --url <url>`: API URL (default:
|
|
150
|
+
- `-u, --url <url>`: API URL (default: https://testbro.dev)
|
|
152
151
|
|
|
153
152
|
#### `testbro logout`
|
|
154
153
|
|
|
@@ -405,7 +404,7 @@ TestBro Configuration
|
|
|
405
404
|
|
|
406
405
|
User Config (~/.testbro/config.json)
|
|
407
406
|
Path: /Users/name/.testbro/config.json
|
|
408
|
-
API URL:
|
|
407
|
+
API URL: https://testbro.dev
|
|
409
408
|
Authenticated: Yes
|
|
410
409
|
Active Project: proj_abc123
|
|
411
410
|
|
|
@@ -465,7 +464,7 @@ Stores user-level settings and authentication.
|
|
|
465
464
|
|
|
466
465
|
```json
|
|
467
466
|
{
|
|
468
|
-
"apiUrl": "
|
|
467
|
+
"apiUrl": "https://testbro.dev",
|
|
469
468
|
"token": "tb_live_xxxxx",
|
|
470
469
|
"activeProjectId": "proj_abc123"
|
|
471
470
|
}
|
|
@@ -530,7 +529,7 @@ TEST_USERNAME=testuser@example.com
|
|
|
530
529
|
TEST_PASSWORD=SecureP@ssw0rd
|
|
531
530
|
|
|
532
531
|
# API URL override
|
|
533
|
-
TESTBRO_API_URL=https://
|
|
532
|
+
TESTBRO_API_URL=https://testbro.dev
|
|
534
533
|
```
|
|
535
534
|
|
|
536
535
|
## Session Continuity
|
|
@@ -686,7 +685,7 @@ jobs:
|
|
|
686
685
|
node-version: 18
|
|
687
686
|
|
|
688
687
|
- name: Install TestBro CLI
|
|
689
|
-
run: npm install -g
|
|
688
|
+
run: npm install -g @test-bro/cli
|
|
690
689
|
|
|
691
690
|
- name: Run Tests
|
|
692
691
|
env:
|
|
@@ -708,7 +707,7 @@ jobs:
|
|
|
708
707
|
test:
|
|
709
708
|
image: node:18
|
|
710
709
|
script:
|
|
711
|
-
- npm install -g
|
|
710
|
+
- npm install -g @test-bro/cli
|
|
712
711
|
- testbro run --project $PROJECT_ID --format json > results.json
|
|
713
712
|
artifacts:
|
|
714
713
|
paths:
|
|
@@ -830,8 +829,8 @@ pnpm install
|
|
|
830
829
|
# Build
|
|
831
830
|
pnpm build
|
|
832
831
|
|
|
833
|
-
#
|
|
834
|
-
|
|
832
|
+
# Install official CLI globally
|
|
833
|
+
npm install -g @test-bro/cli
|
|
835
834
|
|
|
836
835
|
# Run locally
|
|
837
836
|
pnpm start -- run --help
|