Fix NaN output in test separators by using string.repeat() instead of invalid string multiplication

Co-authored-by: AstroSteveo <34114851+AstroSteveo@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-09-23 23:16:35 +00:00
parent 920c966ed9
commit cc84541577
2 changed files with 43 additions and 9 deletions

View File

@ -11,7 +11,7 @@ const { runTests: runApplyTests } = require('./test-apply-effective');
async function runAllTests() { async function runAllTests() {
console.log('🧪 Running Awesome Copilot Comprehensive Test Suite\n'); console.log('🧪 Running Awesome Copilot Comprehensive Test Suite\n');
console.log('=' * 60); console.log('='.repeat(60));
const results = { const results = {
unit: false, unit: false,
@ -22,7 +22,7 @@ async function runAllTests() {
try { try {
console.log('\n📊 Unit Tests (Effective State Computation)'); console.log('\n📊 Unit Tests (Effective State Computation)');
console.log('-' * 45); console.log('-'.repeat(45));
results.unit = await runUnitTests(); results.unit = await runUnitTests();
} catch (error) { } catch (error) {
console.error('Unit tests failed with error:', error.message); console.error('Unit tests failed with error:', error.message);
@ -30,7 +30,7 @@ async function runAllTests() {
try { try {
console.log('\n🔄 Integration Tests (Toggle+Apply Idempotency)'); console.log('\n🔄 Integration Tests (Toggle+Apply Idempotency)');
console.log('-' * 48); console.log('-'.repeat(48));
results.integration = await runIntegrationTests(); results.integration = await runIntegrationTests();
} catch (error) { } catch (error) {
console.error('Integration tests failed with error:', error.message); console.error('Integration tests failed with error:', error.message);
@ -38,7 +38,7 @@ async function runAllTests() {
try { try {
console.log('\n⌨ CLI Tests (List and Toggle Commands)'); console.log('\n⌨ CLI Tests (List and Toggle Commands)');
console.log('-' * 40); console.log('-'.repeat(40));
results.cli = await runCliTests(); results.cli = await runCliTests();
} catch (error) { } catch (error) {
console.error('CLI tests failed with error:', error.message); console.error('CLI tests failed with error:', error.message);
@ -46,7 +46,7 @@ async function runAllTests() {
try { try {
console.log('\n🎯 Apply Tests (Effective States in Apply)'); console.log('\n🎯 Apply Tests (Effective States in Apply)');
console.log('-' * 42); console.log('-'.repeat(42));
results.apply = await runApplyTests(); results.apply = await runApplyTests();
} catch (error) { } catch (error) {
console.error('Apply tests failed with error:', error.message); console.error('Apply tests failed with error:', error.message);
@ -54,7 +54,7 @@ async function runAllTests() {
try { try {
console.log('\n🤖 Repository Instructions Tests'); console.log('\n🤖 Repository Instructions Tests');
console.log('-' * 33); console.log('-'.repeat(33));
const { runTests: runRepoInstructionsTests } = require('./test-repository-instructions'); const { runTests: runRepoInstructionsTests } = require('./test-repository-instructions');
results.repoInstructions = await runRepoInstructionsTests(); results.repoInstructions = await runRepoInstructionsTests();
} catch (error) { } catch (error) {
@ -62,9 +62,9 @@ async function runAllTests() {
} }
// Summary // Summary
console.log('\n' + '=' * 60); console.log('\n' + '='.repeat(60));
console.log('📋 Test Suite Summary'); console.log('📋 Test Suite Summary');
console.log('=' * 60); console.log('='.repeat(60));
const testTypes = [ const testTypes = [
{ name: 'Unit Tests', result: results.unit, emoji: '📊' }, { name: 'Unit Tests', result: results.unit, emoji: '📊' },
@ -82,7 +82,7 @@ async function runAllTests() {
const passedCount = Object.values(results).filter(Boolean).length; const passedCount = Object.values(results).filter(Boolean).length;
const totalCount = Object.keys(results).length; const totalCount = Object.keys(results).length;
console.log('\n' + '-' * 60); console.log('\n' + '-'.repeat(60));
console.log(`Overall Result: ${passedCount}/${totalCount} test suites passed`); console.log(`Overall Result: ${passedCount}/${totalCount} test suites passed`);
if (passedCount === totalCount) { if (passedCount === totalCount) {

34
test-integration.yml Normal file
View File

@ -0,0 +1,34 @@
# Awesome Copilot Configuration File
# Generated on 2025-09-23T23:16:09.548Z
#
# This file uses effective state precedence:
# 1. Explicit item settings (true/false) override everything
# 2. Items not listed inherit from enabled collections
# 3. Otherwise items are disabled
#
# To use:
# - Enable collections for curated sets of related items
# - Explicitly set individual items to true/false to override collections
# - Items not mentioned will follow collection settings
#
# After configuring, run: awesome-copilot apply
#
version: "1.0"
project:
name: "My Project"
description: "A project using awesome-copilot customizations"
output_directory: ".github"
prompts:
instructions:
chatmodes:
collections:
azure-cloud-development: false
csharp-dotnet-development: false
database-data-management: false
devops-oncall: false
frontend-web-dev: false
project-planning: false
security-best-practices: false
technical-spike: false
testing-automation: false