@devasign/verify 0.1.0
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 +18 -0
- package/dist/cli.js +8517 -0
- package/package.json +48 -0
package/README.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# @devasign/verify
|
|
2
|
+
|
|
3
|
+
The runner half of DevAsign verification. It runs inside your CI job (see [devasignhq/verify-action](../verify-action)), asks DevAsign for the test plan of the current pull request, runs it with your repository's own tooling — or its bundled runner when you have none — records every browser test, and uploads the evidence. The verdict is judged by DevAsign and posted on the PR; this tool only runs tests and reports what happened.
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
npx @devasign/verify run --api-url https://devasign-agent.onrender.com
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Commands: `run` (default), `detect` (print the detected test setup), `doctor` (setup diagnostics for end-to-end tests). `--help` lists every option.
|
|
10
|
+
|
|
11
|
+
Guarantees:
|
|
12
|
+
|
|
13
|
+
- Writes only under `.devasign/` and removes it at the end (`--keep` to inspect).
|
|
14
|
+
- Never edits `package.json`, lockfiles, or `playwright.config.*`; generates `.devasign/playwright.config.ts` that extends yours with `video: 'on'`, `trace: 'on'`, `screenshot: 'on'`.
|
|
15
|
+
- A failing generated test is retried twice; pass-after-retry is `flaky`, never `fail`. Your own tests are never retried by us.
|
|
16
|
+
- Setup problems (no start command, missing secret names, wrong runtime) are uploaded as a structured diagnosis, and the process exits 0.
|
|
17
|
+
|
|
18
|
+
Local run against a dev backend: mint a token with `backend/scripts/verify-dev-token.ts`, then `devasign-verify run --api-url http://localhost:8787 --token <jwt> --pr <n> --sha <head-sha>`. Offline: `--plan-file plan.json --results-out results.json`.
|