@empiricalrun/test-run 0.7.1 → 0.7.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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @empiricalrun/test-run
2
2
 
3
+ ## 0.7.3
4
+
5
+ ### Patch Changes
6
+
7
+ - b14d5bf: feat: support headed executions of test run tool
8
+
9
+ ## 0.7.2
10
+
11
+ ### Patch Changes
12
+
13
+ - 049102a: fix: support suites in agent tool calls
14
+
3
15
  ## 0.7.1
4
16
 
5
17
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -1,8 +1,10 @@
1
1
  import { TestCase } from "./types";
2
- export declare function runSingleTest({ testName, fileName, projects, }: {
2
+ export declare function runSingleTest({ testName, suites, fileName, projects, headed, }: {
3
3
  testName: string;
4
+ suites: string[];
4
5
  fileName: string;
5
6
  projects?: string[];
7
+ headed?: boolean;
6
8
  }): Promise<{
7
9
  hasTestPassed: boolean;
8
10
  summaryJson: any;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAY,QAAQ,EAAE,MAAM,SAAS,CAAC;AAI7C,wBAAsB,aAAa,CAAC,EAClC,QAAQ,EACR,QAAQ,EACR,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;;;GAqBA;AAED,wBAAsB,YAAY,CAChC,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CA6CnC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAY,QAAQ,EAAE,MAAM,SAAS,CAAC;AAG7C,wBAAsB,aAAa,CAAC,EAClC,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,MAAM,GACP,EAAE;IACD,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;;;GAuBA;AAED,wBAAsB,YAAY,CAChC,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CA6CnC"}
package/dist/index.js CHANGED
@@ -9,13 +9,13 @@ const path_1 = __importDefault(require("path"));
9
9
  const lib_1 = require("./lib");
10
10
  const types_1 = require("./types");
11
11
  const utils_1 = require("./utils");
12
- // TODO: Support suites here
13
- async function runSingleTest({ testName, fileName, projects, }) {
12
+ async function runSingleTest({ testName, suites, fileName, projects, headed, }) {
14
13
  const testDir = "tests";
15
14
  const filePath = path_1.default.relative(process.cwd(), fileName);
15
+ const pwOptions = headed ? "--headed" : "";
16
16
  const result = await (0, lib_1._runTest)({
17
- tests: [{ name: testName, dir: testDir, filePath, suites: [] }],
18
- pwOptions: "",
17
+ tests: [{ name: testName, dir: testDir, filePath, suites }],
18
+ pwOptions,
19
19
  platform: types_1.Platform.WEB,
20
20
  projects,
21
21
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@empiricalrun/test-run",
3
- "version": "0.7.1",
3
+ "version": "0.7.3",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"