testeranto 0.161.0 → 0.163.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/docs/index.md CHANGED
@@ -35,7 +35,7 @@ async <I extends Ibdd_in_any, O extends Ibdd_out, M>(
35
35
  input: I["iinput"],
36
36
  testSpecification: ITestSpecification<I, O>,
37
37
  testImplementation: ITestImplementation<I, O, M>,
38
- testInterface: Partial<ITestInterface<I>>,
38
+ testAdapter: Partial<ITestInterface<I>>,
39
39
  testResourceRequirement: ITTestResourceRequest = defaultTestResourceRequirement
40
40
  ): Promise<Testeranto<I, O, M>>
41
41
  ```
@@ -175,7 +175,6 @@ The Implementation provides the concrete operations that bring specifications to
175
175
  - `givens`: Initial test states/setup
176
176
  - `whens`: Actions that change state
177
177
  - `thens`: Assertions and validations
178
- - `checks`: Additional verification points
179
178
 
180
179
  ```ts
181
180
  import {
@@ -227,11 +226,7 @@ export const implementation: ITestImplementation<
227
226
  assert.equal(rectangle.circumference(), circumference);
228
227
  return rectangle;
229
228
  },
230
- },
231
-
232
- checks: {
233
- Default: () => new Rectangle(2, 2),
234
- },
229
+ }
235
230
  };
236
231
  ```
237
232
 
@@ -246,7 +241,7 @@ import {
246
241
  } from "testeranto/src/CoreTypes";
247
242
 
248
243
  // Note the type parameter. This is important!
249
- export const testInterface: ITestInterface<
244
+ export const testAdapter: ITestInterface<
250
245
  I extends Ibdd_in,
251
246
  > = {
252
247
  beforeEach: async (subject, i) => {
@@ -445,7 +440,7 @@ type M = {
445
440
  };
446
441
  };
447
442
 
448
- const testInterface: ITestInterface<
443
+ const testAdapter: ITestInterface<
449
444
  I extends Ibdd_in,
450
445
  > = {
451
446
  beforeEach: async (subject, i) => {
@@ -506,11 +501,7 @@ const testImplementation: ITestImplementation<
506
501
  assert.equal(rectangle.circumference(), circumference);
507
502
  return rectangle;
508
503
  },
509
- },
510
-
511
- checks: {
512
- Default: () => new Rectangle(2, 2),
513
- },
504
+ }
514
505
  };
515
506
 
516
507
  const testSpecification: ITestSpecification<
package/docs.html CHANGED
@@ -65,7 +65,7 @@
65
65
  input: I["iinput"],
66
66
  testSpecification: ITestSpecification<I, O>,
67
67
  testImplementation: ITestImplementation<I, O, M>,
68
- testInterface: Partial<ITestInterface<I>>,
68
+ testAdapter: Partial<ITestInterface<I>>,
69
69
  testResourceRequirement: ITTestResourceRequest = defaultTestResourceRequirement
70
70
  ): Promise<Testeranto<I, O, M>></pre><h3>Testeranto&#39;s 3 runtimes</h3>
71
71
  <p>For each of testeranto&#39;s runtime, there is a specific Testeranto main function. Each is it&#39;s own import but all 3 are called in the same way.</p>
@@ -177,7 +177,6 @@ export const specification: ITestSpecification<
177
177
  <li><code>givens</code>: Initial test states/setup</li>
178
178
  <li><code>whens</code>: Actions that change state</li>
179
179
  <li><code>thens</code>: Assertions and validations</li>
180
- <li><code>checks</code>: Additional verification points</li>
181
180
  </ul>
182
181
  <pre>import {
183
182
  Ibdd_in,
@@ -228,11 +227,7 @@ export const implementation: ITestImplementation<
228
227
  assert.equal(rectangle.circumference(), circumference);
229
228
  return rectangle;
230
229
  },
231
- },
232
-
233
- checks: {
234
- Default: () => new Rectangle(2, 2),
235
- },
230
+ }
236
231
  };</pre><h4>The Interface aka ITestInterface</h4>
237
232
  <p>The test interface is code which is NOT business logic. The interface adapts your test subject so that the BDD hooks can be applied. The interface implements the traditional BDD steps &quot;before all&quot;, &quot;after all&quot;, &quot;before each&quot;, &quot;after each&quot;, etc</p>
238
233
  <pre>import {
@@ -241,7 +236,7 @@ export const implementation: ITestImplementation<
241
236
  } from "testeranto/src/CoreTypes";
242
237
 
243
238
  // Note the type parameter. This is important!
244
- export const testInterface: ITestInterface<
239
+ export const testAdapter: ITestInterface<
245
240
  I extends Ibdd_in,
246
241
  > = {
247
242
  beforeEach: async (subject, i) => {
@@ -416,7 +411,7 @@ type M = {
416
411
  };
417
412
  };
418
413
 
419
- const testInterface: ITestInterface<
414
+ const testAdapter: ITestInterface<
420
415
  I extends Ibdd_in,
421
416
  > = {
422
417
  beforeEach: async (subject, i) => {
@@ -477,11 +472,7 @@ const testImplementation: ITestImplementation<
477
472
  assert.equal(rectangle.circumference(), circumference);
478
473
  return rectangle;
479
474
  },
480
- },
481
-
482
- checks: {
483
- Default: () => new Rectangle(2, 2),
484
- },
475
+ }
485
476
  };
486
477
 
487
478
  const testSpecification: ITestSpecification<
package/index.html CHANGED
@@ -46,7 +46,7 @@
46
46
  <h4>🚧 Testeranto is still under development but a beta version will be released soon. If you are interested in joining the beta program, send an email to <a href="mailto:testeranto.dev@gmail.com">testeranto.dev@gmail.com</a>. 🚧</h4>
47
47
  <h2>quick links</h2>
48
48
  <ul>
49
- <li>an example of the reports generated: <a href="https://adamwong246.github.io/testeranto/testeranto/index.html">adamwong246.github.io/testeranto/testeranto</a></li>
49
+ <li>an example of the reports generated: <a href="/testeranto/projects.html">adamwong246.github.io/testeranto/testeranto</a></li>
50
50
  <li>demo of me using testeranto to fix a bug: <a href="https://www.youtube.com/embed/WvU5xMqGi6Q">youtube</a></li>
51
51
  <li>a starter testeranto project: <a href="https://github.com/adamwong246/testeranto-starter">testeranto-starter</a></li>
52
52
  </ul>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "testeranto",
3
3
  "description": "the AI powered BDD test framework for typescript projects",
4
- "version": "0.161.0",
4
+ "version": "0.163.0",
5
5
  "engines": {
6
6
  "node": "18.18.0"
7
7
  },
@@ -1 +1,9 @@
1
- failure 4 JSHandle@error
1
+ failure 4 JSHandle@error
2
+ {"url":"file:///Users/adam/Code/testeranto/testeranto/bundles/web/allTests/src/lib/baseBuilder.test/baseBuilder.test.web.mjs?cacheBust=1753310886514","lineNumber":376,"columnNumber":14}
3
+ [{"url":"file:///Users/adam/Code/testeranto/testeranto/bundles/web/allTests/src/lib/baseBuilder.test/baseBuilder.test.web.mjs?cacheBust=1753310886514","lineNumber":376,"columnNumber":14}]
4
+ Given error 1: JSHandle@error
5
+ {"url":"file:///Users/adam/Code/testeranto/testeranto/bundles/web/allTests/src/lib/baseBuilder.test/baseBuilder.test.web.mjs?cacheBust=1753310886514","lineNumber":698,"columnNumber":16}
6
+ [{"url":"file:///Users/adam/Code/testeranto/testeranto/bundles/web/allTests/src/lib/baseBuilder.test/baseBuilder.test.web.mjs?cacheBust=1753310886514","lineNumber":698,"columnNumber":16}]
7
+ fail JSHandle@error
8
+ {"url":"pptr:evaluate;file%3A%2F%2F%2FUsers%2Fadam%2FCode%2Ftesteranto%2Fsrc%2FPM%2Fmain.ts%3A18%3A1394","lineNumber":7,"columnNumber":16}
9
+ [{"url":"pptr:evaluate;file%3A%2F%2F%2FUsers%2Fadam%2FCode%2Ftesteranto%2Fsrc%2FPM%2Fmain.ts%3A18%3A1394","lineNumber":7,"columnNumber":16}]
@@ -1,5 +1,5 @@
1
1
  stderr > Starting inspector on 127.0.0.1:9229 failed: address already in use
2
- stdout > receiveTestResourceConfig {"name":"src/lib/classBuilder.test/classBuilder.test.ts","ports":[],"fs":"testeranto/reports/allTests/src/lib/classBuilder.test/classBuilder.test/node","browserWSEndpoint":"ws://127.0.0.1:3234/devtools/browser/a0b649ec-108e-41f0-b1b8-c0ec4f61137a"}
2
+ stdout > receiveTestResourceConfig {"name":"src/lib/classBuilder.test/classBuilder.test.ts","ports":[],"fs":"testeranto/reports/allTests/src/lib/classBuilder.test/classBuilder.test/node","browserWSEndpoint":"ws://[::1]:3234/devtools/browser/d532d877-cc6c-47f3-b85b-223fc2936e05"}
3
3
  stdout > Creating default test builder instance
4
4
  stdout > Builder created: TestClassBuilderMock {
5
5
  artifacts: [],
@@ -42,7 +42,7 @@ stdout > Builder created: TestClassBuilderMock {
42
42
  testJobs: [],
43
43
  summary: {}
44
44
  }
45
- stdout > Checking builder initialization: TestClassBuilderMock {
45
+ Checking builder initialization: TestClassBuilderMock {
46
46
  artifacts: [],
47
47
  testResourceRequirement: { ports: [] },
48
48
  suitesOverrides: {