@travetto/test 3.3.3 → 3.3.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/test",
3
- "version": "3.3.3",
3
+ "version": "3.3.5",
4
4
  "description": "Declarative test framework",
5
5
  "keywords": [
6
6
  "unit-testing",
@@ -27,15 +27,15 @@
27
27
  "directory": "module/test"
28
28
  },
29
29
  "dependencies": {
30
- "@travetto/base": "^3.3.2",
31
- "@travetto/registry": "^3.3.2",
30
+ "@travetto/base": "^3.3.3",
31
+ "@travetto/registry": "^3.3.3",
32
32
  "@travetto/terminal": "^3.3.1",
33
- "@travetto/worker": "^3.3.2",
34
- "@travetto/yaml": "^3.3.2"
33
+ "@travetto/worker": "^3.3.3",
34
+ "@travetto/yaml": "^3.3.3"
35
35
  },
36
36
  "peerDependencies": {
37
- "@travetto/cli": "^3.3.3",
38
- "@travetto/transformer": "^3.3.1"
37
+ "@travetto/cli": "^3.3.5",
38
+ "@travetto/transformer": "^3.3.2"
39
39
  },
40
40
  "peerDependenciesMeta": {
41
41
  "@travetto/transformer": {
@@ -29,6 +29,9 @@ export function buildStandardTestManager(consumer: TestConsumer): () => Worker<s
29
29
  active: true,
30
30
  async destroy(): Promise<void> { },
31
31
  async execute(file: string): Promise<void> {
32
+
33
+ process.send?.({ type: 'log', message: `Worker Executing ${file}` });
34
+
32
35
  const event = buildEvent(file);
33
36
 
34
37
  const { module } = RootIndex.getEntry(event.file!)!;
@@ -69,6 +72,8 @@ export function buildStandardTestManager(consumer: TestConsumer): () => Worker<s
69
72
  // Kill on complete
70
73
  await channel.destroy();
71
74
 
75
+ process.send?.({ type: 'log', message: `Worker Finished ${file}` });
76
+
72
77
  // If we received an error, throw it
73
78
  if (error) {
74
79
  throw ErrorUtil.deserializeError(error);
@@ -18,7 +18,11 @@ export class TestCountCommand {
18
18
 
19
19
  // Load all tests
20
20
  for (const file of files) {
21
- await import(RootIndex.getFromSource(file)!.import);
21
+ try {
22
+ await import(RootIndex.getFromSource(file)!.import);
23
+ } catch (err) {
24
+ console.error('Failed to import', file, err);
25
+ }
22
26
  }
23
27
 
24
28
  await SuiteRegistry.init();