testdriverai 6.0.27 → 6.0.28
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/agent/index.js +7 -0
- package/agent/interface.js +0 -6
- package/package.json +1 -1
package/agent/index.js
CHANGED
|
@@ -1771,6 +1771,13 @@ ${regression}
|
|
|
1771
1771
|
events.log.log,
|
|
1772
1772
|
theme.green(`Howdy! I'm TestDriver v${packageJson.version}`),
|
|
1773
1773
|
);
|
|
1774
|
+
|
|
1775
|
+
// Emit test start event for the entire test execution
|
|
1776
|
+
this.emitter.emit(events.test.start, {
|
|
1777
|
+
filePath: this.thisFile,
|
|
1778
|
+
timestamp: Date.now(),
|
|
1779
|
+
});
|
|
1780
|
+
|
|
1774
1781
|
// Start the debugger server as early as possible to ensure event listeners are attached
|
|
1775
1782
|
if (!debuggerStarted) {
|
|
1776
1783
|
debuggerStarted = true; // Prevent multiple starts, especially when running test in parallel
|
package/agent/interface.js
CHANGED
|
@@ -68,12 +68,6 @@ function createCommandDefinitions(agent) {
|
|
|
68
68
|
const file = normalizeFilePath(args.file);
|
|
69
69
|
const testStartTime = Date.now();
|
|
70
70
|
|
|
71
|
-
// Emit test start event for the entire test execution
|
|
72
|
-
agent.emitter.emit(events.test.start, {
|
|
73
|
-
filePath: file,
|
|
74
|
-
timestamp: testStartTime,
|
|
75
|
-
});
|
|
76
|
-
|
|
77
71
|
try {
|
|
78
72
|
await agent.runLifecycle("prerun");
|
|
79
73
|
// When run() is called through run.js CLI command, shouldExit should be true
|