@autometa/test-builder 0.3.8 → 0.4.0
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/.turbo/turbo-test.log +10 -55
- package/CHANGELOG.md +14 -0
- package/package.json +10 -10
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,66 +1,21 @@
|
|
|
1
1
|
|
|
2
|
-
> @autometa/test-builder@0.3.
|
|
2
|
+
> @autometa/test-builder@0.3.8 test /Users/ben.aherne/Documents/GitHub/autometa/packages/test-builder
|
|
3
3
|
> vitest run --passWithNoTests
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
RUN v1.4.0 /Users/ben.aherne/Documents/GitHub/autometa/packages/test-builder
|
|
7
7
|
|
|
8
|
-
✓ src/
|
|
9
|
-
✓ src/
|
|
8
|
+
✓ src/bridges/bridge-query.spec.ts (1 test) 3ms
|
|
9
|
+
✓ src/gherkin-walker.spec.ts (1 test) 63ms
|
|
10
|
+
✓ src/bridges/bridge-search.spec.ts (18 tests) 8ms
|
|
10
11
|
stdout | src/bridges/bridge-search.spec.ts > Bridge Search > findRuleType > should find a rule by name
|
|
11
12
|
My Rule
|
|
12
13
|
|
|
13
|
-
✓ src/
|
|
14
|
-
✓ src/
|
|
15
|
-
❯ src/test-builder.spec.ts (12 tests | 2 failed) 30ms
|
|
16
|
-
❯ src/test-builder.spec.ts > TestBuilder > should walk through a feature with a scenario outline with examples with steps
|
|
17
|
-
→ 'Example: My Scenario Outline' could not find a step definition
|
|
18
|
-
❯ src/test-builder.spec.ts > TestBuilder > should walk through a feature with a scenario outline with examples table
|
|
19
|
-
→ 'Example: My Scenario Outline' could not find a step definition
|
|
14
|
+
✓ src/scope-search.spec.ts (12 tests) 40ms
|
|
15
|
+
✓ src/test-builder.spec.ts (12 tests) 64ms
|
|
20
16
|
|
|
21
|
-
|
|
17
|
+
Test Files 5 passed (5)
|
|
18
|
+
Tests 44 passed (44)
|
|
19
|
+
Start at 13:48:39
|
|
20
|
+
Duration 4.93s (transform 4.26s, setup 0ms, collect 16.32s, tests 178ms, environment 1ms, prepare 3.04s)
|
|
22
21
|
|
|
23
|
-
FAIL src/test-builder.spec.ts > TestBuilder > should walk through a feature with a scenario outline with examples with steps
|
|
24
|
-
FAIL src/test-builder.spec.ts > TestBuilder > should walk through a feature with a scenario outline with examples table
|
|
25
|
-
AutomationError: 'Example: My Scenario Outline' could not find a step definition
|
|
26
|
-
❯ Module.raise ../errors/src/automation-error.ts:16:9
|
|
27
|
-
❯ getStep src/test-builder.ts:156:5
|
|
28
|
-
154| const cause = e as Error;
|
|
29
|
-
155| const { title } = gherkin as Scenario;
|
|
30
|
-
156| raise(`'${title}' could not find a step definition`, { cause });
|
|
31
|
-
| ^
|
|
32
|
-
157| }
|
|
33
|
-
158| }
|
|
34
|
-
❯ Object.onStep src/test-builder.ts:102:28
|
|
35
|
-
❯ Function.#walkNode src/gherkin-walker.ts:95:32
|
|
36
|
-
❯ Function.walk src/gherkin-walker.ts:45:10
|
|
37
|
-
❯ Function.#walkChildren src/gherkin-walker.ts:107:12
|
|
38
|
-
❯ Function.#walkNode src/gherkin-walker.ts:72:19
|
|
39
|
-
❯ Function.walk src/gherkin-walker.ts:45:10
|
|
40
|
-
❯ Function.#walkChildren src/gherkin-walker.ts:107:12
|
|
41
|
-
❯ Function.#walkNode src/gherkin-walker.ts:67:19
|
|
42
|
-
|
|
43
|
-
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
|
|
44
|
-
Serialized Error: { opts: { cause: { stack: 'AutomationError: No stored step could be found matching [Given test step bar]\n at StepCache.throwOnNotFound (/Users/ben.aherne/Documents/GitHub/autometa/packages/scopes/src/caches/hook-cache.ts:258:13)\n at StepCache.find (/Users/ben.aherne/Documents/GitHub/autometa/packages/scopes/src/caches/hook-cache.ts:251:12)\n at StepCache.findByExample (/Users/ben.aherne/Documents/GitHub/autometa/packages/scopes/src/caches/hook-cache.ts:210:17)\n at getStep (/Users/ben.aherne/Documents/GitHub/autometa/packages/test-builder/src/test-builder.ts:149:22)\n at Object.onStep (/Users/ben.aherne/Documents/GitHub/autometa/packages/test-builder/src/test-builder.ts:102:28)\n at Function.#walkNode (/Users/ben.aherne/Documents/GitHub/autometa/packages/test-builder/src/gherkin-walker.ts:95:32)\n at Function.walk (/Users/ben.aherne/Documents/GitHub/autometa/packages/test-builder/src/gherkin-walker.ts:45:10)\n at Function.#walkChildren (/Users/ben.aherne/Documents/GitHub/autometa/packages/test-builder/src/gherkin-walker.ts:107:12)\n at Function.#walkNode (/Users/ben.aherne/Documents/GitHub/autometa/packages/test-builder/src/gherkin-walker.ts:72:19)\n at Function.walk (/Users/ben.aherne/Documents/GitHub/autometa/packages/test-builder/src/gherkin-walker.ts:45:10)', message: 'No stored step could be found matching [Given test step bar]', opts: {}, name: 'AutomationError', constructor: 'Function<AutomationError>', toString: 'Function<toString>' } } }
|
|
45
|
-
Caused by: AutomationError: No stored step could be found matching [Given test step bar]
|
|
46
|
-
❯ StepCache.throwOnNotFound ../scopes/src/caches/hook-cache.ts:258:13
|
|
47
|
-
❯ StepCache.find ../scopes/src/caches/hook-cache.ts:251:12
|
|
48
|
-
❯ StepCache.findByExample ../scopes/src/caches/hook-cache.ts:210:17
|
|
49
|
-
❯ getStep src/test-builder.ts:149:22
|
|
50
|
-
❯ Object.onStep src/test-builder.ts:102:28
|
|
51
|
-
❯ Function.#walkNode src/gherkin-walker.ts:95:32
|
|
52
|
-
❯ Function.walk src/gherkin-walker.ts:45:10
|
|
53
|
-
❯ Function.#walkChildren src/gherkin-walker.ts:107:12
|
|
54
|
-
❯ Function.#walkNode src/gherkin-walker.ts:72:19
|
|
55
|
-
❯ Function.walk src/gherkin-walker.ts:45:10
|
|
56
|
-
|
|
57
|
-
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
|
|
58
|
-
Serialized Error: { opts: {} }
|
|
59
|
-
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/2]⎯
|
|
60
|
-
|
|
61
|
-
Test Files 1 failed | 4 passed (5)
|
|
62
|
-
Tests 2 failed | 42 passed (44)
|
|
63
|
-
Start at 19:00:35
|
|
64
|
-
Duration 1.06s (transform 536ms, setup 1ms, collect 2.37s, tests 48ms, environment 0ms, prepare 826ms)
|
|
65
|
-
|
|
66
|
-
ELIFECYCLE Test failed. See above for more details.
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @autometa/test-builder
|
|
2
2
|
|
|
3
|
+
## 0.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 7440e9f: feat: new group based hooks for feature, rule, outline and examples
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [7440e9f]
|
|
12
|
+
- @autometa/gherkin@0.7.0
|
|
13
|
+
- @autometa/events@0.3.0
|
|
14
|
+
- @autometa/scopes@0.7.0
|
|
15
|
+
- @autometa/app@0.4.0
|
|
16
|
+
|
|
3
17
|
## 0.3.8
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@autometa/test-builder",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "internal library for autometa",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -27,22 +27,22 @@
|
|
|
27
27
|
"tsup": "^7.2.0",
|
|
28
28
|
"typescript": "^4.9.5",
|
|
29
29
|
"vitest": "1.4.0",
|
|
30
|
-
"
|
|
31
|
-
"
|
|
30
|
+
"eslint-config-custom": "0.6.0",
|
|
31
|
+
"tsconfig": "0.7.0"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@cucumber/cucumber-expressions": "^16.1.2",
|
|
35
35
|
"zod": "^3.21.4",
|
|
36
|
-
"@autometa/bind-decorator": "^0.5.1",
|
|
37
|
-
"@autometa/errors": "^0.2.2",
|
|
38
36
|
"@autometa/asserters": "^0.1.8",
|
|
39
|
-
"@autometa/
|
|
40
|
-
"@autometa/
|
|
41
|
-
"@autometa/
|
|
42
|
-
"@autometa/
|
|
37
|
+
"@autometa/app": "^0.4.0",
|
|
38
|
+
"@autometa/dto-builder": "^0.13.9",
|
|
39
|
+
"@autometa/events": "^0.3.0",
|
|
40
|
+
"@autometa/gherkin": "^0.7.0",
|
|
41
|
+
"@autometa/bind-decorator": "^0.5.1",
|
|
42
|
+
"@autometa/scopes": "^0.7.0",
|
|
43
43
|
"@autometa/types": "^0.4.1",
|
|
44
44
|
"@autometa/phrases": "^0.1.12",
|
|
45
|
-
"@autometa/
|
|
45
|
+
"@autometa/errors": "^0.2.2"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"test": "vitest run --passWithNoTests",
|