testeranto 0.219.2 → 0.219.4

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
@@ -2,7 +2,7 @@
2
2
  "name": "testeranto",
3
3
  "displayName": "Testeranto",
4
4
  "description": "the Dockerized, AI powered, BDD test framework for polyglot projects",
5
- "version": "0.219.2",
5
+ "version": "0.219.4",
6
6
  "engines": {
7
7
  "node": ">=20.19.0",
8
8
  "vscode": "^1.60.0"
@@ -27,9 +27,11 @@ const externalTests = true;
27
27
 
28
28
  export const nodeBuildCommand = (fpath: string) => {
29
29
 
30
- if (false) {
30
+ if (externalTests) {
31
31
  console.log("external tests")
32
- return `yarn tsx node_modules/testeranto/src/server/runtimes/node/node.ts /workspace/${fpath}`;
32
+ // return `yarn tsx /workspace/node_modules/testeranto/src/server/runtimes/node/node.ts /workspace/${fpath}`;
33
+ return `ls node_modules/testeranto/src`
34
+ // return ["sh", "-c", "cd /workspace && javac -cp \".:lib/*\" src/server/runtimes/java/main.java && java -cp \"src/server/runtimes/java:.\" main"]
33
35
  } else {
34
36
  console.log("not external tests")
35
37
  return `yarn tsx src/server/runtimes/node/node.ts /workspace/${fpath}`;
@@ -359,7 +359,7 @@ ${x}
359
359
  // return false;
360
360
  // }
361
361
 
362
- private async startServiceLogging(serviceName: string, containerName: string, runtime: string, testName: string): Promise<void> {
362
+ private async startServiceLogging(serviceName: string, runtime: string): Promise<void> {
363
363
  // Create report directory
364
364
  const reportDir = path.join(
365
365
  process.cwd(),
@@ -530,6 +530,11 @@ ${x}
530
530
  console.log(`[Server_Docker] Starting builder service: ${serviceName}`);
531
531
  try {
532
532
  await this.spawnPromise(`docker compose -f "testeranto/docker-compose.yml" up -d ${serviceName}`);
533
+ this.startServiceLogging(serviceName, runtime)
534
+ .catch(error => console.error(`[Server_Docker] Failed to start logging for ${serviceName}:`, error));
535
+ this.captureExistingLogs(serviceName, runtime)
536
+
537
+
533
538
  } catch (error: any) {
534
539
  console.error(`[Server_Docker] Failed to start ${serviceName}: ${error.message}`);
535
540
  }
@@ -564,8 +569,11 @@ ${x}
564
569
  try {
565
570
  await this.spawnPromise(`docker compose -f "testeranto/docker-compose.yml" up -d ${aiderServiceName}`);
566
571
  // Start logging for aider services
567
- this.startServiceLogging(aiderServiceName, aiderServiceName, runtime, testName)
572
+ this.startServiceLogging(aiderServiceName, runtime)
568
573
  .catch(error => console.error(`[Server_Docker] Failed to start logging for ${aiderServiceName}:`, error));
574
+
575
+ this.captureExistingLogs(aiderServiceName, runtime)
576
+ .catch(error => console.error(`[Server_Docker] Failed to capture existing logs for ${aiderServiceName}:`, error));
569
577
  } catch (error: any) {
570
578
  console.error(`[Server_Docker] Failed to start ${aiderServiceName}: ${error.message}`);
571
579
  }
@@ -590,16 +598,16 @@ ${x}
590
598
 
591
599
  // Immediately start logging in the background
592
600
  // Don't wait for it to complete
593
- this.startServiceLogging(bddServiceName, bddServiceName, runtime, testName)
601
+ this.startServiceLogging(bddServiceName, runtime)
594
602
  .catch(error => console.error(`[Server_Docker] Failed to start logging for ${bddServiceName}:`, error));
595
603
 
596
604
  // Also capture any existing logs from the container (in case it already produced output)
597
- this.captureExistingLogs(bddServiceName, runtime, testName)
605
+ this.captureExistingLogs(bddServiceName, runtime)
598
606
  .catch(error => console.error(`[Server_Docker] Failed to capture existing logs for ${bddServiceName}:`, error));
599
607
  } catch (error: any) {
600
608
  console.error(`[Server_Docker] Failed to start ${bddServiceName}: ${error.message}`);
601
609
  // Even if starting failed, try to capture any logs that might exist
602
- this.captureExistingLogs(bddServiceName, runtime, testName)
610
+ this.captureExistingLogs(bddServiceName, runtime)
603
611
  .catch(err => console.error(`[Server_Docker] Also failed to capture logs:`, err));
604
612
  }
605
613
  }
@@ -621,16 +629,16 @@ ${x}
621
629
  try {
622
630
  await this.spawnPromise(`docker compose -f "testeranto/docker-compose.yml" up -d ${staticServiceName}`);
623
631
  // Start logging for this service
624
- this.startServiceLogging(staticServiceName, staticServiceName, runtime, testName)
632
+ this.startServiceLogging(staticServiceName, runtime)
625
633
  .catch(error => console.error(`[Server_Docker] Failed to start logging for ${staticServiceName}:`, error));
626
634
 
627
635
  // Also capture any existing logs
628
- this.captureExistingLogs(staticServiceName, runtime, testName)
636
+ this.captureExistingLogs(staticServiceName, runtime)
629
637
  .catch(error => console.error(`[Server_Docker] Failed to capture existing logs for ${staticServiceName}:`, error));
630
638
  } catch (error: any) {
631
639
  console.error(`[Server_Docker] Failed to start ${staticServiceName}: ${error.message}`);
632
640
  // Try to capture logs even if starting failed
633
- this.captureExistingLogs(staticServiceName, runtime, testName)
641
+ this.captureExistingLogs(staticServiceName, runtime)
634
642
  .catch(err => console.error(`[Server_Docker] Also failed to capture logs:`, err));
635
643
  }
636
644
  }
@@ -638,7 +646,7 @@ ${x}
638
646
  }
639
647
  }
640
648
 
641
- private async captureExistingLogs(serviceName: string, runtime: string, testName: string): Promise<void> {
649
+ private async captureExistingLogs(serviceName: string, runtime: string): Promise<void> {
642
650
  // Create report directory
643
651
  const reportDir = path.join(
644
652
  process.cwd(),
@@ -14,7 +14,7 @@ RUN yarn install
14
14
  # --immutable
15
15
 
16
16
  # Resumbably, the user provides the but we ignore it
17
- CMD ls
17
+ # CMD ls
18
18
 
19
19
  # FROM build as testeranto/lintcheck
20
20
  # CMD yarn eslint