@test-station/core 0.1.0 → 0.1.5

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.
Files changed (2) hide show
  1. package/README.md +48 -0
  2. package/package.json +7 -7
package/README.md ADDED
@@ -0,0 +1,48 @@
1
+ # @test-station/core
2
+
3
+ Programmatic engine for Test Station.
4
+
5
+ `@test-station/core` loads config, resolves adapters, executes suites, applies policy and enrichment, and builds the normalized `report.json` model. Most consumers should install `@test-station/cli`; install `@test-station/core` when you want direct API access.
6
+
7
+ ## Install
8
+
9
+ ```sh
10
+ npm install --save-dev @test-station/core
11
+ ```
12
+
13
+ ## Install This Package When
14
+
15
+ - you want `defineConfig(...)` in `test-station.config.mjs`
16
+ - you want to call `runReport(...)` programmatically
17
+ - you want direct access to config loading or console summary helpers
18
+ - you are embedding Test Station into another tool
19
+
20
+ ## Key Exports
21
+
22
+ - `defineConfig`
23
+ - `loadConfig`
24
+ - `summarizeConfig`
25
+ - `runReport`
26
+ - `readJson`
27
+ - `formatConsoleSummary`
28
+ - `createConsoleProgressReporter`
29
+ - `resolveAdapterForSuite`
30
+
31
+ ## Example
32
+
33
+ ```js
34
+ import { defineConfig, runReport } from '@test-station/core';
35
+
36
+ export default defineConfig({
37
+ schemaVersion: '1',
38
+ project: {
39
+ name: 'my-project',
40
+ rootDir: import.meta.dirname,
41
+ outputDir: 'artifacts/test-report',
42
+ rawDir: 'artifacts/test-report/raw',
43
+ },
44
+ suites: [],
45
+ });
46
+
47
+ await runReport({ configPath: './test-station.config.mjs' });
48
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@test-station/core",
3
- "version": "0.1.0",
3
+ "version": "0.1.5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -9,12 +9,12 @@
9
9
  ".": "./src/index.js"
10
10
  },
11
11
  "dependencies": {
12
- "@test-station/adapter-jest": "workspace:*",
13
- "@test-station/adapter-node-test": "workspace:*",
14
- "@test-station/adapter-playwright": "workspace:*",
15
- "@test-station/adapter-shell": "workspace:*",
16
- "@test-station/adapter-vitest": "workspace:*",
17
- "@test-station/plugin-source-analysis": "workspace:*"
12
+ "@test-station/adapter-jest": "0.1.5",
13
+ "@test-station/adapter-node-test": "0.1.5",
14
+ "@test-station/adapter-playwright": "0.1.5",
15
+ "@test-station/adapter-shell": "0.1.5",
16
+ "@test-station/adapter-vitest": "0.1.5",
17
+ "@test-station/plugin-source-analysis": "0.1.5"
18
18
  },
19
19
  "scripts": {
20
20
  "build": "node ../../scripts/check-package.mjs ./src/index.js",