veriqa-test-advisor
Version:
AI-powered regression test case advisor CLI tool with integrated Manual QA support
39 lines (27 loc) โข 1.31 kB
JavaScript
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();