UNPKG

veriqa-test-advisor

Version:

AI-powered regression test case advisor CLI tool with integrated Manual QA support

39 lines (27 loc) โ€ข 1.31 kB
#!/usr/bin/env node const DomainDetector = require('../src/domain-intelligence/domain-detector.js'); const chalk = require('chalk'); console.log(chalk.blue('๐Ÿงช Testing Domain Intelligence System')); console.log('=' .repeat(50)); async function testDomainDetection() { try { const detector = new DomainDetector(process.cwd()); console.log(chalk.cyan('๐Ÿ” Analyzing current project domain...')); const result = await detector.analyzeDomain(); console.log(chalk.green('\nโœ… Domain Analysis Results:')); console.log(chalk.blue(`๐Ÿ“Š Domain: ${result.domain} (${result.confidence}% confidence)`)); if (result.keywords.length > 0) { console.log(chalk.yellow(`๐Ÿ”‘ Keywords found: ${result.keywords.slice(0, 5).join(', ')}${result.keywords.length > 5 ? '...' : ''}`)); } if (result.suggestedModules.length > 0) { console.log(chalk.cyan(`๐Ÿ“ฆ Suggested Modules: ${result.suggestedModules.join(', ')}`)); } if (result.suggestedTests.length > 0) { console.log(chalk.magenta(`๐Ÿงช Suggested Tests: ${result.suggestedTests.join(', ')}`)); } console.log(chalk.green('\n๐ŸŽ‰ Domain detection completed!')); } catch (error) { console.log(chalk.red(`โŒ Error: ${error.message}`)); } } testDomainDetection();