@autometa/test-builder 0.3.8 → 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,66 +1,21 @@
1
1
 
2
- > @autometa/test-builder@0.3.1 test /Users/ben.aherne/Documents/GitHub/autometa/packages/test-builder
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/gherkin-walker.spec.ts (1 test) 1ms
9
- ✓ src/bridges/bridge-query.spec.ts (1 test) 2ms
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/bridges/bridge-search.spec.ts (18 tests) 6ms
14
- ✓ src/scope-search.spec.ts (12 tests) 9ms
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
- ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 2 ⎯⎯⎯⎯⎯⎯⎯
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,30 @@
1
1
  # @autometa/test-builder
2
2
 
3
+ ## 0.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [da669a3]
8
+ - @autometa/app@0.4.1
9
+ - @autometa/dto-builder@0.13.10
10
+ - @autometa/scopes@0.7.1
11
+ - @autometa/gherkin@0.7.1
12
+ - @autometa/events@0.3.1
13
+
14
+ ## 0.4.0
15
+
16
+ ### Minor Changes
17
+
18
+ - 7440e9f: feat: new group based hooks for feature, rule, outline and examples
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies [7440e9f]
23
+ - @autometa/gherkin@0.7.0
24
+ - @autometa/events@0.3.0
25
+ - @autometa/scopes@0.7.0
26
+ - @autometa/app@0.4.0
27
+
3
28
  ## 0.3.8
4
29
 
5
30
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autometa/test-builder",
3
- "version": "0.3.8",
3
+ "version": "0.4.1",
4
4
  "description": "internal library for autometa",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -33,16 +33,16 @@
33
33
  "dependencies": {
34
34
  "@cucumber/cucumber-expressions": "^16.1.2",
35
35
  "zod": "^3.21.4",
36
+ "@autometa/app": "^0.4.1",
37
+ "@autometa/asserters": "^0.1.8",
36
38
  "@autometa/bind-decorator": "^0.5.1",
37
39
  "@autometa/errors": "^0.2.2",
38
- "@autometa/asserters": "^0.1.8",
39
- "@autometa/events": "^0.2.27",
40
- "@autometa/gherkin": "^0.6.15",
41
- "@autometa/app": "^0.3.5",
42
- "@autometa/scopes": "^0.6.6",
43
- "@autometa/types": "^0.4.1",
40
+ "@autometa/gherkin": "^0.7.1",
41
+ "@autometa/dto-builder": "^0.13.10",
42
+ "@autometa/events": "^0.3.1",
44
43
  "@autometa/phrases": "^0.1.12",
45
- "@autometa/dto-builder": "^0.13.9"
44
+ "@autometa/scopes": "^0.7.1",
45
+ "@autometa/types": "^0.4.1"
46
46
  },
47
47
  "scripts": {
48
48
  "test": "vitest run --passWithNoTests",