@empiricalrun/test-gen 0.16.11 → 0.16.13
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 +12 -0
- package/dist/reporter/ci.d.ts.map +1 -1
- package/dist/reporter/ci.js +2 -12
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @empiricalrun/test-gen
|
|
2
2
|
|
|
3
|
+
## 0.16.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fd6c8c5: fix: remove asserts from github description
|
|
8
|
+
|
|
9
|
+
## 0.16.12
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 9ad9089: fix: github output read file error
|
|
14
|
+
|
|
3
15
|
## 0.16.11
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ci.d.ts","sourceRoot":"","sources":["../../src/reporter/ci.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ci.d.ts","sourceRoot":"","sources":["../../src/reporter/ci.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,wBAAsB,UAAU,CAAC,SAAS,EAAE,QAAQ,EAAE,uBAYrD"}
|
package/dist/reporter/ci.js
CHANGED
|
@@ -22,29 +22,19 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
22
22
|
__setModuleDefault(result, mod);
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
26
|
exports.reportOnCI = void 0;
|
|
30
27
|
const core = __importStar(require("@actions/core"));
|
|
31
|
-
const fs_extra_1 = __importDefault(require("fs-extra"));
|
|
32
28
|
async function reportOnCI(scenarios) {
|
|
33
|
-
|
|
34
|
-
console.log("scenarios", JSON.stringify(scenarios, null, 2));
|
|
35
|
-
if ("true" && "/home/runner/work/_temp/_runner_file_commands/set_output_97540806-e920-44fb-9cbf-7ec96b1e22ed") {
|
|
29
|
+
if ("true") {
|
|
36
30
|
const testNames = scenarios.map((s) => s.name).join(" ");
|
|
37
31
|
const scenariosOutput = scenarios
|
|
38
32
|
.map((s) => {
|
|
39
|
-
return `**Scenario:** ${s.name} \n\n**Steps:**\n - ${s.steps.join("\n - ")}
|
|
33
|
+
return `**Scenario:** ${s.name} \n\n**Steps:**\n - ${s.steps.join("\n - ")}`;
|
|
40
34
|
})
|
|
41
35
|
.join("\n ----- \n");
|
|
42
|
-
console.log("scenariosOutput", scenariosOutput);
|
|
43
|
-
console.log("testNames", testNames);
|
|
44
36
|
core.setOutput("summary", scenariosOutput);
|
|
45
37
|
core.setOutput("test_names", testNames);
|
|
46
|
-
const file = fs_extra_1.default.readFileSync("/home/runner/work/_temp/_runner_file_commands/set_output_97540806-e920-44fb-9cbf-7ec96b1e22ed");
|
|
47
|
-
console.log("github output content", file.toString());
|
|
48
38
|
}
|
|
49
39
|
return scenarios;
|
|
50
40
|
}
|