@calmo/task-runner 1.2.0 → 1.2.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.
package/test-report.xml CHANGED
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8" ?>
2
- <testsuites name="vitest tests" tests="31" failures="0" errors="0" time="0.148869921">
3
- <testsuite name="tests/ComplexScenario.test.ts" timestamp="2026-01-18T03:56:21.866Z" hostname="runnervmmtnos" tests="2" failures="0" errors="0" skipped="0" time="0.008692833">
4
- <testcase classname="tests/ComplexScenario.test.ts" name="Complex Scenario Integration Tests &gt; 1. All steps execute when all succeed and context is hydrated" time="0.005600185">
2
+ <testsuites name="vitest tests" tests="31" failures="0" errors="0" time="0.154711609">
3
+ <testsuite name="tests/ComplexScenario.test.ts" timestamp="2026-01-18T05:09:17.318Z" hostname="runnervmmtnos" tests="2" failures="0" errors="0" skipped="0" time="0.009405379">
4
+ <testcase classname="tests/ComplexScenario.test.ts" name="Complex Scenario Integration Tests &gt; 1. All steps execute when all succeed and context is hydrated" time="0.005631667">
5
5
  <system-out>
6
6
  Running StepA
7
7
  Running StepB
@@ -15,73 +15,73 @@ Running StepG
15
15
 
16
16
  </system-out>
17
17
  </testcase>
18
- <testcase classname="tests/ComplexScenario.test.ts" name="Complex Scenario Integration Tests &gt; 2. The &apos;skip&apos; propagation works as intended if something breaks up in the tree" time="0.001185557">
18
+ <testcase classname="tests/ComplexScenario.test.ts" name="Complex Scenario Integration Tests &gt; 2. The &apos;skip&apos; propagation works as intended if something breaks up in the tree" time="0.001163698">
19
19
  </testcase>
20
20
  </testsuite>
21
- <testsuite name="tests/TaskGraphValidator.test.ts" timestamp="2026-01-18T03:56:21.867Z" hostname="runnervmmtnos" tests="9" failures="0" errors="0" skipped="0" time="0.00859907">
22
- <testcase classname="tests/TaskGraphValidator.test.ts" name="TaskGraphValidator &gt; should be instantiated" time="0.001784141">
21
+ <testsuite name="tests/TaskGraphValidator.test.ts" timestamp="2026-01-18T05:09:17.319Z" hostname="runnervmmtnos" tests="9" failures="0" errors="0" skipped="0" time="0.009209222">
22
+ <testcase classname="tests/TaskGraphValidator.test.ts" name="TaskGraphValidator &gt; should be instantiated" time="0.001860142">
23
23
  </testcase>
24
- <testcase classname="tests/TaskGraphValidator.test.ts" name="TaskGraphValidator &gt; should return valid result for empty graph" time="0.001494487">
24
+ <testcase classname="tests/TaskGraphValidator.test.ts" name="TaskGraphValidator &gt; should return valid result for empty graph" time="0.001425479">
25
25
  </testcase>
26
- <testcase classname="tests/TaskGraphValidator.test.ts" name="TaskGraphValidator &gt; should detect duplicate tasks" time="0.001370324">
26
+ <testcase classname="tests/TaskGraphValidator.test.ts" name="TaskGraphValidator &gt; should detect duplicate tasks" time="0.001669406">
27
27
  </testcase>
28
- <testcase classname="tests/TaskGraphValidator.test.ts" name="TaskGraphValidator &gt; should detect missing dependencies" time="0.000348985">
28
+ <testcase classname="tests/TaskGraphValidator.test.ts" name="TaskGraphValidator &gt; should detect missing dependencies" time="0.000439783">
29
29
  </testcase>
30
- <testcase classname="tests/TaskGraphValidator.test.ts" name="TaskGraphValidator &gt; should detect cycles" time="0.000306475">
30
+ <testcase classname="tests/TaskGraphValidator.test.ts" name="TaskGraphValidator &gt; should detect cycles" time="0.000420086">
31
31
  </testcase>
32
- <testcase classname="tests/TaskGraphValidator.test.ts" name="TaskGraphValidator &gt; should return valid for a correct graph" time="0.000329659">
32
+ <testcase classname="tests/TaskGraphValidator.test.ts" name="TaskGraphValidator &gt; should return valid for a correct graph" time="0.00036332">
33
33
  </testcase>
34
- <testcase classname="tests/TaskGraphValidator.test.ts" name="TaskGraphValidator &gt; should not detect cycles if missing dependencies are present" time="0.000273113">
34
+ <testcase classname="tests/TaskGraphValidator.test.ts" name="TaskGraphValidator &gt; should not detect cycles if missing dependencies are present" time="0.000300223">
35
35
  </testcase>
36
- <testcase classname="tests/TaskGraphValidator.test.ts" name="TaskGraphValidator &gt; should detect more complex cycles" time="0.000237105">
36
+ <testcase classname="tests/TaskGraphValidator.test.ts" name="TaskGraphValidator &gt; should detect more complex cycles" time="0.000247734">
37
37
  </testcase>
38
- <testcase classname="tests/TaskGraphValidator.test.ts" name="TaskGraphValidator &gt; should handle cycle detection with no cycles but shared dependencies" time="0.000156013">
38
+ <testcase classname="tests/TaskGraphValidator.test.ts" name="TaskGraphValidator &gt; should handle cycle detection with no cycles but shared dependencies" time="0.00022428">
39
39
  </testcase>
40
40
  </testsuite>
41
- <testsuite name="tests/TaskRunner.test.ts" timestamp="2026-01-18T03:56:21.869Z" hostname="runnervmmtnos" tests="10" failures="0" errors="0" skipped="0" time="0.111209003">
42
- <testcase classname="tests/TaskRunner.test.ts" name="TaskRunner &gt; should run tasks in the correct sequential order" time="0.003746958">
41
+ <testsuite name="tests/TaskRunner.test.ts" timestamp="2026-01-18T05:09:17.321Z" hostname="runnervmmtnos" tests="10" failures="0" errors="0" skipped="0" time="0.112022405">
42
+ <testcase classname="tests/TaskRunner.test.ts" name="TaskRunner &gt; should run tasks in the correct sequential order" time="0.003955215">
43
43
  </testcase>
44
- <testcase classname="tests/TaskRunner.test.ts" name="TaskRunner &gt; should handle an empty list of tasks gracefully" time="0.00041004">
44
+ <testcase classname="tests/TaskRunner.test.ts" name="TaskRunner &gt; should handle an empty list of tasks gracefully" time="0.000433943">
45
45
  </testcase>
46
- <testcase classname="tests/TaskRunner.test.ts" name="TaskRunner &gt; should run independent tasks in parallel" time="0.100646475">
46
+ <testcase classname="tests/TaskRunner.test.ts" name="TaskRunner &gt; should run independent tasks in parallel" time="0.100725915">
47
47
  </testcase>
48
- <testcase classname="tests/TaskRunner.test.ts" name="TaskRunner &gt; should skip dependent tasks if a root task fails" time="0.000392958">
48
+ <testcase classname="tests/TaskRunner.test.ts" name="TaskRunner &gt; should skip dependent tasks if a root task fails" time="0.000326772">
49
49
  </testcase>
50
- <testcase classname="tests/TaskRunner.test.ts" name="TaskRunner &gt; should throw an error for &apos;circular dependency&apos;" time="0.001934242">
50
+ <testcase classname="tests/TaskRunner.test.ts" name="TaskRunner &gt; should throw an error for &apos;circular dependency&apos;" time="0.002189108">
51
51
  </testcase>
52
- <testcase classname="tests/TaskRunner.test.ts" name="TaskRunner &gt; should throw an error for &apos;missing dependency&apos;" time="0.000290306">
52
+ <testcase classname="tests/TaskRunner.test.ts" name="TaskRunner &gt; should throw an error for &apos;missing dependency&apos;" time="0.000373049">
53
53
  </testcase>
54
- <testcase classname="tests/TaskRunner.test.ts" name="TaskRunner &gt; should handle tasks that throw an error during execution" time="0.00024479">
54
+ <testcase classname="tests/TaskRunner.test.ts" name="TaskRunner &gt; should handle tasks that throw an error during execution" time="0.000375122">
55
55
  </testcase>
56
- <testcase classname="tests/TaskRunner.test.ts" name="TaskRunner &gt; should skip tasks whose dependencies are skipped" time="0.000380384">
56
+ <testcase classname="tests/TaskRunner.test.ts" name="TaskRunner &gt; should skip tasks whose dependencies are skipped" time="0.000419075">
57
57
  </testcase>
58
- <testcase classname="tests/TaskRunner.test.ts" name="TaskRunner &gt; should handle tasks that throw a non-Error object during execution" time="0.000391555">
58
+ <testcase classname="tests/TaskRunner.test.ts" name="TaskRunner &gt; should handle tasks that throw a non-Error object during execution" time="0.000377657">
59
59
  </testcase>
60
- <testcase classname="tests/TaskRunner.test.ts" name="TaskRunner &gt; should handle duplicate steps where one gets skipped due to failed dependency" time="0.00036763">
60
+ <testcase classname="tests/TaskRunner.test.ts" name="TaskRunner &gt; should handle duplicate steps where one gets skipped due to failed dependency" time="0.000463308">
61
61
  </testcase>
62
62
  </testsuite>
63
- <testsuite name="tests/TaskRunnerEvents.test.ts" timestamp="2026-01-18T03:56:21.871Z" hostname="runnervmmtnos" tests="7" failures="0" errors="0" skipped="0" time="0.013775682">
64
- <testcase classname="tests/TaskRunnerEvents.test.ts" name="TaskRunner Events &gt; should fire all lifecycle events in a successful run" time="0.004847334">
63
+ <testsuite name="tests/TaskRunnerEvents.test.ts" timestamp="2026-01-18T05:09:17.324Z" hostname="runnervmmtnos" tests="7" failures="0" errors="0" skipped="0" time="0.016480165">
64
+ <testcase classname="tests/TaskRunnerEvents.test.ts" name="TaskRunner Events &gt; should fire all lifecycle events in a successful run" time="0.005054182">
65
65
  </testcase>
66
- <testcase classname="tests/TaskRunnerEvents.test.ts" name="TaskRunner Events &gt; should fire taskSkipped event when dependency fails" time="0.004274688">
66
+ <testcase classname="tests/TaskRunnerEvents.test.ts" name="TaskRunner Events &gt; should fire taskSkipped event when dependency fails" time="0.005669685">
67
67
  </testcase>
68
- <testcase classname="tests/TaskRunnerEvents.test.ts" name="TaskRunner Events &gt; should not crash if a listener throws an error" time="0.001365544">
68
+ <testcase classname="tests/TaskRunnerEvents.test.ts" name="TaskRunner Events &gt; should not crash if a listener throws an error" time="0.001869079">
69
69
  </testcase>
70
- <testcase classname="tests/TaskRunnerEvents.test.ts" name="TaskRunner Events &gt; should fire workflow events even for empty step list" time="0.000304822">
70
+ <testcase classname="tests/TaskRunnerEvents.test.ts" name="TaskRunner Events &gt; should fire workflow events even for empty step list" time="0.000419856">
71
71
  </testcase>
72
- <testcase classname="tests/TaskRunnerEvents.test.ts" name="TaskRunner Events &gt; should handle unsubscribe correctly" time="0.000354125">
72
+ <testcase classname="tests/TaskRunnerEvents.test.ts" name="TaskRunner Events &gt; should handle unsubscribe correctly" time="0.00057675">
73
73
  </testcase>
74
- <testcase classname="tests/TaskRunnerEvents.test.ts" name="TaskRunner Events &gt; should safely handle off() when no listeners exist" time="0.00015962">
74
+ <testcase classname="tests/TaskRunnerEvents.test.ts" name="TaskRunner Events &gt; should safely handle off() when no listeners exist" time="0.0002619">
75
75
  </testcase>
76
- <testcase classname="tests/TaskRunnerEvents.test.ts" name="TaskRunner Events &gt; should support multiple listeners for the same event" time="0.000313028">
76
+ <testcase classname="tests/TaskRunnerEvents.test.ts" name="TaskRunner Events &gt; should support multiple listeners for the same event" time="0.000414686">
77
77
  </testcase>
78
78
  </testsuite>
79
- <testsuite name="tests/integration.test.ts" timestamp="2026-01-18T03:56:21.873Z" hostname="runnervmmtnos" tests="3" failures="0" errors="0" skipped="0" time="0.006593333">
80
- <testcase classname="tests/integration.test.ts" name="TaskRunner Validation Integration &gt; should throw validation error with clear message for duplicate tasks" time="0.004083429">
79
+ <testsuite name="tests/integration.test.ts" timestamp="2026-01-18T05:09:17.325Z" hostname="runnervmmtnos" tests="3" failures="0" errors="0" skipped="0" time="0.007594438">
80
+ <testcase classname="tests/integration.test.ts" name="TaskRunner Validation Integration &gt; should throw validation error with clear message for duplicate tasks" time="0.004519361">
81
81
  </testcase>
82
- <testcase classname="tests/integration.test.ts" name="TaskRunner Validation Integration &gt; should throw validation error with clear message for missing dependencies" time="0.000367681">
82
+ <testcase classname="tests/integration.test.ts" name="TaskRunner Validation Integration &gt; should throw validation error with clear message for missing dependencies" time="0.000476853">
83
83
  </testcase>
84
- <testcase classname="tests/integration.test.ts" name="TaskRunner Validation Integration &gt; should throw validation error with clear message for cycles" time="0.000389051">
84
+ <testcase classname="tests/integration.test.ts" name="TaskRunner Validation Integration &gt; should throw validation error with clear message for cycles" time="0.000463618">
85
85
  </testcase>
86
86
  </testsuite>
87
87
  </testsuites>