intellitester 0.2.13 → 0.2.14

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/dist/cli/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { loadIntellitesterConfig, isPipelineFile, isWorkflowFile, isPipelineContent, isWorkflowContent, loadTestDefinition, collectMissingEnvVars, loadPipelineDefinition, loadWorkflowDefinition, runWorkflow, runWebTest, startTrackingServer, startWebServer, createTestContext, setupAppwriteTracking, runWorkflowWithContext, killServer, createAIProvider, TestDefinitionSchema } from '../chunk-BYSKHSJB.js';
2
+ import { loadIntellitesterConfig, isPipelineFile, isWorkflowFile, isPipelineContent, isWorkflowContent, loadTestDefinition, collectMissingEnvVars, loadPipelineDefinition, loadWorkflowDefinition, runWorkflow, runWebTest, startTrackingServer, startWebServer, createTestContext, setupAppwriteTracking, runWorkflowWithContext, killServer, createAIProvider, TestDefinitionSchema } from '../chunk-MRTD4FLN.js';
3
3
  import { loadFailedCleanups, loadCleanupHandlers, executeCleanup, removeFailedCleanup } from '../chunk-ECBA4GJ3.js';
4
4
  import '../chunk-DE5UFTTG.js';
5
5
  import '../chunk-6PYKWWH5.js';
@@ -161,7 +161,7 @@ ${"=".repeat(60)}`);
161
161
  process.on("SIGINT", signalCleanup);
162
162
  process.on("SIGTERM", signalCleanup);
163
163
  const browserName = options.browser ?? pipeline.config?.web?.browser ?? "chromium";
164
- const headless = options.headed ? false : pipeline.config?.web?.headless ?? true;
164
+ const headless = options.headed === true ? false : pipeline.config?.web?.headless ?? true;
165
165
  const browser = await getBrowser(browserName).launch({ headless });
166
166
  const browserContext = await browser.newContext();
167
167
  const page = await browserContext.newPage();
@@ -1723,14 +1723,22 @@ var main = async () => {
1723
1723
  for (const pipeline of discovered.pipelines) {
1724
1724
  try {
1725
1725
  await runPipelineCommand(pipeline, runOpts);
1726
- } catch {
1726
+ } catch (error) {
1727
+ console.error(`
1728
+ \u274C Pipeline failed: ${path4__default.basename(pipeline)}`);
1729
+ console.error(` ${error instanceof Error ? error.message : String(error)}
1730
+ `);
1727
1731
  failed = true;
1728
1732
  }
1729
1733
  }
1730
1734
  for (const workflow of discovered.workflows) {
1731
1735
  try {
1732
1736
  await runWorkflowCommand(workflow, runOpts);
1733
- } catch {
1737
+ } catch (error) {
1738
+ console.error(`
1739
+ \u274C Workflow failed: ${path4__default.basename(workflow)}`);
1740
+ console.error(` ${error instanceof Error ? error.message : String(error)}
1741
+ `);
1734
1742
  failed = true;
1735
1743
  }
1736
1744
  }
@@ -1743,7 +1751,11 @@ var main = async () => {
1743
1751
  interactive: options.interactive,
1744
1752
  debug: options.debug
1745
1753
  });
1746
- } catch {
1754
+ } catch (error) {
1755
+ console.error(`
1756
+ \u274C Test failed: ${path4__default.basename(test)}`);
1757
+ console.error(` ${error instanceof Error ? error.message : String(error)}
1758
+ `);
1747
1759
  failed = true;
1748
1760
  }
1749
1761
  }