@dads-framework/testing-native-win32-x64 0.2.0 → 0.4.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 CHANGED
@@ -1,68 +1,68 @@
1
- # Dads Testing native runtime (Windows x64)
2
-
3
- This package contains the platform-native `dad-test.exe` executable used by
4
- `@dads-framework/testing` on Windows x64.
5
-
6
- ## Try it
7
-
8
- Use PowerShell and Node.js 22 or newer in an empty directory on Windows x64.
9
- Normally, npm selects this runtime when you install
10
- [`@dads-framework/testing`](../../core/README.md). Use this direct install
11
- after the public release when optional dependencies are unavailable.
12
-
13
- ```powershell
14
- node -p 'process.platform + "-" + process.arch'
15
- npm init -y
16
- npm install --save-dev @dads-framework/testing-native-win32-x64
17
- $binary = node -p 'require.resolve("@dads-framework/testing-native-win32-x64")'
18
- $binary
19
- Test-Path -LiteralPath $binary -PathType Leaf
20
-
21
- @'
22
- {
23
- "schemaVersion": 1,
24
- "workspace": { "root": ".", "fullFallback": { "taskIds": ["app:test"] } },
25
- "projects": [{ "id": "app", "root": ".", "fallbackDependencies": [] }],
26
- "tasks": [{
27
- "id": "app:test",
28
- "project": "app",
29
- "kind": "test",
30
- "execution": { "executable": "node", "args": ["--version"], "cwd": "." },
31
- "dependsOn": [],
32
- "impact": { "mode": "always" }
33
- }]
34
- }
35
- '@ | Set-Content -Encoding ascii dads.testing.json
36
- node -p 'JSON.stringify({ schemaVersion: 1, operation: "plan", workspaceRoot: process.cwd(), all: true })' | & $binary
37
- ```
38
-
39
- The host check prints `win32-x64`. The binary path ends in
40
- `bin\dad-test.exe`, followed by `True` from the file check.
41
- The native response contains `"ok":true` and a task with `"id":"app:test"`
42
- and `"decision":"run"`. A plan shows which tasks would run.
43
-
44
- In the repository, the
45
- [native release workflow](../../../../.github/workflows/testing-native-release.yml)
46
- packs this platform's package from `packages/testing/native/win32-x64/`
47
- and installs the tarball with the facade in a fresh `testing-consumer`
48
- directory to check planning through the installed artifact.
49
-
50
- ## Commands
51
-
52
- The native executable reads one JSON request from standard input. Set
53
- `workspaceRoot` to an absolute directory containing `dads.testing.json`. It accepts
54
- `plan` and `run` as the `operation` field. For the flag-based CLI, including
55
- `init` and `explain`, use the
56
- [testing facade](../../core/README.md#commands).
57
-
58
- ## What it refuses to do
59
-
60
- This build supports Windows x64 only.
61
-
62
- ## Contract
63
-
64
- The executable returns a JSON response with `schemaVersion` and `ok`. On
65
- success, `result.plan` describes task selection. An invalid request returns
66
- `ok: false`, an `error` message, and exit code 1. Use the
67
- [testing facade](../../core/README.md#contract) for the supported application
68
- interface.
1
+ # Dads Testing native runtime (Windows x64)
2
+
3
+ This package contains the platform-native `dad-test.exe` executable used by
4
+ `@dads-framework/testing` on Windows x64.
5
+
6
+ ## Try it
7
+
8
+ Use PowerShell and Node.js 22 or newer in an empty directory on Windows x64.
9
+ Normally, npm selects this runtime when you install
10
+ [`@dads-framework/testing`](../../core/README.md). Use this direct install
11
+ after the public release when optional dependencies are unavailable.
12
+
13
+ ```powershell
14
+ node -p 'process.platform + "-" + process.arch'
15
+ npm init -y
16
+ npm install --save-dev @dads-framework/testing-native-win32-x64
17
+ $binary = node -p 'require.resolve("@dads-framework/testing-native-win32-x64")'
18
+ $binary
19
+ Test-Path -LiteralPath $binary -PathType Leaf
20
+
21
+ @'
22
+ {
23
+ "schemaVersion": 1,
24
+ "workspace": { "root": ".", "fullFallback": { "taskIds": ["app:test"] } },
25
+ "projects": [{ "id": "app", "root": ".", "fallbackDependencies": [] }],
26
+ "tasks": [{
27
+ "id": "app:test",
28
+ "project": "app",
29
+ "kind": "test",
30
+ "execution": { "executable": "node", "args": ["--version"], "cwd": "." },
31
+ "dependsOn": [],
32
+ "impact": { "mode": "always" }
33
+ }]
34
+ }
35
+ '@ | Set-Content -Encoding ascii dads.testing.json
36
+ node -p 'JSON.stringify({ schemaVersion: 1, operation: "plan", workspaceRoot: process.cwd(), all: true })' | & $binary
37
+ ```
38
+
39
+ The host check prints `win32-x64`. The binary path ends in
40
+ `bin\dad-test.exe`, followed by `True` from the file check.
41
+ The native response contains `"ok":true` and a task with `"id":"app:test"`
42
+ and `"decision":"run"`. A plan shows which tasks would run.
43
+
44
+ In the repository, the
45
+ [native release workflow](../../../../.github/workflows/testing-native-release.yml)
46
+ packs this platform's package from `packages/testing/native/win32-x64/`
47
+ and installs the tarball with the facade in a fresh `testing-consumer`
48
+ directory to check planning through the installed artifact.
49
+
50
+ ## Commands
51
+
52
+ The native executable reads one JSON request from standard input. Set
53
+ `workspaceRoot` to an absolute directory containing `dads.testing.json`. It accepts
54
+ `plan` and `run` as the `operation` field. For the flag-based CLI, including
55
+ `init` and `explain`, use the
56
+ [testing facade](../../core/README.md#commands).
57
+
58
+ ## What it refuses to do
59
+
60
+ This build supports Windows x64 only.
61
+
62
+ ## Contract
63
+
64
+ The executable returns a JSON response with `schemaVersion` and `ok`. On
65
+ success, `result.plan` describes task selection. An invalid request returns
66
+ `ok: false`, an `error` message, and exit code 1. Use the
67
+ [testing facade](../../core/README.md#contract) for the supported application
68
+ interface.