testdossier 0.2.2 → 0.2.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 +6 -2
- package/assets/mark.svg +5 -0
- package/lib/testdossier.mjs +3 -2
- package/package.json +14 -3
package/README.md
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
|
+
<img src="https://raw.githubusercontent.com/devkalu/test-dossier/main/cli/assets/mark.svg" width="44" height="44" alt="TestDossier">
|
|
2
|
+
|
|
1
3
|
# TestDossier CLI
|
|
2
4
|
|
|
5
|
+
**Publish test evidence from CI without adding another agent, daemon, or hosted runner.**
|
|
6
|
+
|
|
3
7
|
Upload a completed test report from a developer laptop, test machine, or CI
|
|
4
8
|
job. Run these commands in the project containing your automated tests:
|
|
5
9
|
|
|
6
10
|
1. Install the latest CLI in the project. To pin a release instead, replace
|
|
7
|
-
`@latest` with an exact version such as `@0.2.
|
|
11
|
+
`@latest` with an exact version such as `@0.2.3`:
|
|
8
12
|
|
|
9
13
|
```bash
|
|
10
14
|
npm install --save-dev testdossier@latest
|
|
@@ -114,7 +118,7 @@ npm install --save-dev testdossier@latest
|
|
|
114
118
|
npx testdossier init
|
|
115
119
|
```
|
|
116
120
|
|
|
117
|
-
Use `npm install --save-dev testdossier@0.2.
|
|
121
|
+
Use `npm install --save-dev testdossier@0.2.3` when the repository should pin
|
|
118
122
|
that exact release. In either case, subsequent commands remain
|
|
119
123
|
`npx testdossier ...`; the version selector belongs only to installation.
|
|
120
124
|
|
package/assets/mark.svg
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" role="img" aria-label="TestDossier">
|
|
2
|
+
<title>TestDossier</title>
|
|
3
|
+
<path fill="#006b61" fill-rule="evenodd" d="M20 6h14c17 0 28 10 28 26S51 58 34 58H20V6Zm14 14v24c9 0 14-4 14-12s-5-12-14-12Z"/>
|
|
4
|
+
<path fill="#006b61" d="M2 6h32v10H2z"/>
|
|
5
|
+
</svg>
|
package/lib/testdossier.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { createHash, randomUUID } from "node:crypto";
|
|
|
2
2
|
import { readFile, stat, writeFile } from "node:fs/promises";
|
|
3
3
|
import { basename, isAbsolute, join, relative, resolve, sep } from "node:path";
|
|
4
4
|
|
|
5
|
-
export const VERSION = "0.2.
|
|
5
|
+
export const VERSION = "0.2.3";
|
|
6
6
|
const DEFAULT_ORIGIN = "https://testdossier.com";
|
|
7
7
|
const ENV_FILE_NAME = ".env.testdossier";
|
|
8
8
|
const CONFIG_FILE_NAME = "testdossier.json";
|
|
@@ -800,7 +800,8 @@ async function postWithRetry({ endpoint, headers, body, env, fetchImpl, stderr,
|
|
|
800
800
|
}
|
|
801
801
|
|
|
802
802
|
function helpText() {
|
|
803
|
-
return `TestDossier
|
|
803
|
+
return `TD TestDossier
|
|
804
|
+
CI report uploader · ${VERSION}
|
|
804
805
|
|
|
805
806
|
Usage:
|
|
806
807
|
testdossier init One-time setup: create ${ENV_FILE_NAME} and gitignore it
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "testdossier",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"description": "Upload
|
|
3
|
+
"version": "0.2.3",
|
|
4
|
+
"description": "Upload Playwright, Cypress, Cucumber, JUnit, and JSON test evidence to TestDossier.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"bin": {
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"files": [
|
|
11
11
|
"bin",
|
|
12
12
|
"lib",
|
|
13
|
+
"assets",
|
|
13
14
|
"README.md",
|
|
14
15
|
"LICENSE",
|
|
15
16
|
".env.testdossier.example"
|
|
@@ -18,7 +19,13 @@
|
|
|
18
19
|
"node": ">=18"
|
|
19
20
|
},
|
|
20
21
|
"homepage": "https://testdossier.com",
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "git+https://github.com/devkalu/test-dossier.git",
|
|
25
|
+
"directory": "cli"
|
|
26
|
+
},
|
|
21
27
|
"bugs": {
|
|
28
|
+
"url": "https://github.com/devkalu/test-dossier/issues",
|
|
22
29
|
"email": "support@testdossier.com"
|
|
23
30
|
},
|
|
24
31
|
"keywords": [
|
|
@@ -27,7 +34,11 @@
|
|
|
27
34
|
"playwright",
|
|
28
35
|
"cypress",
|
|
29
36
|
"cucumber",
|
|
30
|
-
"testdossier"
|
|
37
|
+
"testdossier",
|
|
38
|
+
"test-management",
|
|
39
|
+
"test-evidence",
|
|
40
|
+
"continuous-integration",
|
|
41
|
+
"qa"
|
|
31
42
|
],
|
|
32
43
|
"publishConfig": {
|
|
33
44
|
"access": "public"
|