mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-09 05:35:21 +09:00
- Implemented mock-based and comprehensive tests for batch task processing. - Created detailed test results documentation including metrics and performance characteristics. - Added error handling for unexpected arguments in test execution. - Generated HTML and JSON reports summarizing test outcomes. - Established integration tests for agent spawning, task assignment, and execution tracking. - Enhanced event monitoring for task lifecycle and agent performance.
29 lines
902 B
TypeScript
Executable File
29 lines
902 B
TypeScript
Executable File
#!/usr/bin/env -S deno run --allow-all
|
|
|
|
/**
|
|
* Test runner script for Claude-Flow batch task system
|
|
* Run with: deno run --allow-all scripts/test-batch-tasks.ts
|
|
*/
|
|
|
|
import { runBatchTaskTest } from '../tests/integration/batch-task-test.ts';
|
|
|
|
console.log('🚀 Claude-Flow Batch Task System Test Runner\n');
|
|
console.log('This test will demonstrate:');
|
|
console.log(' • Task creation and queuing');
|
|
console.log(' • Agent spawning and assignment');
|
|
console.log(' • Parallel task execution');
|
|
console.log(' • Batch tool usage for efficiency');
|
|
console.log(' • Task completion tracking');
|
|
console.log(' • System coordination\n');
|
|
console.log('Starting test in 3 seconds...\n');
|
|
|
|
// Give user time to read
|
|
await new Promise(resolve => setTimeout(resolve, 3000));
|
|
|
|
try {
|
|
await runBatchTaskTest();
|
|
Deno.exit(0);
|
|
} catch (error) {
|
|
console.error('Test failed:', error);
|
|
Deno.exit(1);
|
|
} |