textrun-extension 0.3.1 → 0.4.1
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.
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as textRunner from "text-runner-engine";
|
|
2
|
-
import * as util from "util";
|
|
3
2
|
/** runs Text-Runner in the workspace */
|
|
4
3
|
export async function runTextrunner(action) {
|
|
5
4
|
action.name("Running Text-Runner in workspace");
|
|
@@ -11,7 +10,8 @@ export async function runTextrunner(action) {
|
|
|
11
10
|
const activityCollector = new textRunner.ActivityCollector(command);
|
|
12
11
|
await command.execute();
|
|
13
12
|
for (const result of activityCollector.results()) {
|
|
14
|
-
|
|
13
|
+
// TODO: maybe print this when debug mode is activated
|
|
14
|
+
// action.log(util.inspect(result, false, Infinity))
|
|
15
15
|
if (result.error) {
|
|
16
16
|
throw result.error;
|
|
17
17
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { promises as fs } from "fs";
|
|
2
2
|
import * as textRunner from "text-runner-engine";
|
|
3
|
-
import * as util from "util";
|
|
4
3
|
/** runs the given content in Text-Runner */
|
|
5
4
|
export async function runnableRegion(action) {
|
|
6
5
|
action.name("execute Markdown in Text-Runner");
|
|
@@ -17,7 +16,8 @@ export async function runnableRegion(action) {
|
|
|
17
16
|
const activityCollector = new textRunner.ActivityCollector(command);
|
|
18
17
|
await command.execute();
|
|
19
18
|
for (const result of activityCollector.results()) {
|
|
20
|
-
|
|
19
|
+
// TODO: maybe print this when debug mode is activated
|
|
20
|
+
// action.log(util.inspect(result, false, Infinity))
|
|
21
21
|
if (result.error) {
|
|
22
22
|
throw result.error;
|
|
23
23
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "textrun-extension",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "Text-Runner actions for verifying the documentation of Text-Runner extensions",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"type": "module",
|
|
@@ -13,19 +13,19 @@
|
|
|
13
13
|
"build": "tsc -p tsconfig-build.json",
|
|
14
14
|
"cuke": "cucumber-js --format=progress",
|
|
15
15
|
"doc": "text-runner",
|
|
16
|
-
"fix": "eslint --fix --ignore-pattern=dist/ . && dprint fmt && sort-package-json --quiet",
|
|
16
|
+
"fix": "eslint --fix --ignore-pattern=dist/ . && dprint fmt && sort-package-json --quiet && ../tools/rta ghokin fmt replace features",
|
|
17
17
|
"lint": "dprint check && sort-package-json --check --quiet && eslint --ignore-pattern=dist/ . && depcheck",
|
|
18
18
|
"reset": "rm -rf dist && yarn run build",
|
|
19
19
|
"unit": "node --test --import tsx 'src/**/*.test.ts'"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"text-runner-engine": "7.1
|
|
22
|
+
"text-runner-engine": "7.2.1"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"shared-cucumber-steps": "*",
|
|
26
|
-
"text-runner": "7.1
|
|
27
|
-
"textrun-action": "0.
|
|
28
|
-
"tsx": "4.
|
|
26
|
+
"text-runner": "7.2.1",
|
|
27
|
+
"textrun-action": "0.4.1",
|
|
28
|
+
"tsx": "4.20.6"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "d407abf5515e7fe37f886dc8d51014588fb929ad"
|
|
31
31
|
}
|