@testspectra/cli 1.0.67 → 1.0.69

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.
Binary file
@@ -550,7 +550,7 @@ This workspace uses TestSpectra's **"Centralized Configuration, Distributed Impl
550
550
 
551
551
  ### Centralized Root Elements
552
552
  - \`./spectra.config.ts\`: Single source of truth for runtime configurations (Base URL, Appium devices, browser targets, timeouts).
553
- - \`./.testspectra/\`: Centralized app data folder containing driver caches (ChromeDriver, GeckoDriver, Appium), execution logs, and universal ambient types (\`.testspectra/types/\`).
553
+ - \`./.testspectra/\`: Local test project cache (execution logs, temp artifacts, and universal ambient types in \`.testspectra/types/\`). Global binaries and drivers are managed at \`~/.testspectra/drivers/\`.
554
554
  - \`./tsconfig.spectra.json\`: Solution TypeScript entry point equipped with TestSpectra language service plugin.
555
555
  - \`./tsconfig.spectra.web.json\`: Strongly-typed composite configuration for Web platform tests.
556
556
  - \`./tsconfig.spectra.android.json\`: Strongly-typed composite configuration for Android platform tests.
@@ -36,18 +36,31 @@ export class RustCoreBridge {
36
36
  config: options.config,
37
37
  targetDevice: options.targetDevice,
38
38
  });
39
+ const home = process.env.HOME || process.env.USERPROFILE || "";
40
+ const globalDriversDir = path.join(home, ".testspectra", "drivers");
41
+ if (!fs.existsSync(globalDriversDir)) {
42
+ try {
43
+ fs.mkdirSync(globalDriversDir, { recursive: true });
44
+ }
45
+ catch { }
46
+ }
47
+ const runnerEnv = {
48
+ ...process.env,
49
+ TEST_SPECTRA_DRIVER_CACHE: globalDriversDir,
50
+ RUST_LOG: "info",
51
+ };
39
52
  return new Promise((resolve, reject) => {
40
53
  let child;
41
54
  if (binPath === "cargo") {
42
55
  const workspaceRoot = path.resolve(__dirname, "../../..");
43
56
  child = spawn("cargo", ["run", "--manifest-path", "core/test-runner/Cargo.toml", "--bin", "testspectra-runner", "--", payload], {
44
57
  cwd: workspaceRoot,
45
- env: { ...process.env, RUST_LOG: "info" },
58
+ env: runnerEnv,
46
59
  });
47
60
  }
48
61
  else {
49
62
  child = spawn(binPath, [payload], {
50
- env: { ...process.env, RUST_LOG: "info" },
63
+ env: runnerEnv,
51
64
  });
52
65
  }
53
66
  let runStatus = "failed";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testspectra/cli",
3
- "version": "1.0.67",
3
+ "version": "1.0.69",
4
4
  "description": "TestSpectra Zero-Config Cross-Platform Test Runner CLI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -30,7 +30,7 @@
30
30
  ],
31
31
  "dependencies": {
32
32
  "@clack/prompts": "^1.7.0",
33
- "@testspectra/matchers": "^1.0.67",
33
+ "@testspectra/matchers": "^1.0.69",
34
34
  "chalk": "^5.3.0",
35
35
  "commander": "^12.1.0",
36
36
  "dotenv": "^16.4.5",
@@ -8,8 +8,8 @@
8
8
  "type-check": "tsc -b"
9
9
  },
10
10
  "devDependencies": {
11
- "@testspectra/cli": "^1.0.67",
12
- "@testspectra/matchers": "^1.0.67",
11
+ "@testspectra/cli": "^1.0.69",
12
+ "@testspectra/matchers": "^1.0.69",
13
13
  "@types/node": "^20.14.0",
14
14
  "@wdio/cli": "^9.2.8",
15
15
  "@wdio/local-runner": "^9.2.8",
@@ -10,8 +10,8 @@
10
10
  "build": "nx run-many -t build"
11
11
  },
12
12
  "devDependencies": {
13
- "@testspectra/cli": "^1.0.67",
14
- "@testspectra/matchers": "^1.0.67",
13
+ "@testspectra/cli": "^1.0.69",
14
+ "@testspectra/matchers": "^1.0.69",
15
15
  "@types/node": "^20.14.0",
16
16
  "@wdio/cli": "^9.2.8",
17
17
  "@wdio/local-runner": "^9.2.8",