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:
parent
920c966ed9
commit
cc84541577
18
test-all.js
18
test-all.js
@ -11,7 +11,7 @@ const { runTests: runApplyTests } = require('./test-apply-effective');
|
||||
|
||||
async function runAllTests() {
|
||||
console.log('🧪 Running Awesome Copilot Comprehensive Test Suite\n');
|
||||
console.log('=' * 60);
|
||||
console.log('='.repeat(60));
|
||||
|
||||
const results = {
|
||||
unit: false,
|
||||
@ -22,7 +22,7 @@ async function runAllTests() {
|
||||
|
||||
try {
|
||||
console.log('\n📊 Unit Tests (Effective State Computation)');
|
||||
console.log('-' * 45);
|
||||
console.log('-'.repeat(45));
|
||||
results.unit = await runUnitTests();
|
||||
} catch (error) {
|
||||
console.error('Unit tests failed with error:', error.message);
|
||||
@ -30,7 +30,7 @@ async function runAllTests() {
|
||||
|
||||
try {
|
||||
console.log('\n🔄 Integration Tests (Toggle+Apply Idempotency)');
|
||||
console.log('-' * 48);
|
||||
console.log('-'.repeat(48));
|
||||
results.integration = await runIntegrationTests();
|
||||
} catch (error) {
|
||||
console.error('Integration tests failed with error:', error.message);
|
||||
@ -38,7 +38,7 @@ async function runAllTests() {
|
||||
|
||||
try {
|
||||
console.log('\n⌨️ CLI Tests (List and Toggle Commands)');
|
||||
console.log('-' * 40);
|
||||
console.log('-'.repeat(40));
|
||||
results.cli = await runCliTests();
|
||||
} catch (error) {
|
||||
console.error('CLI tests failed with error:', error.message);
|
||||
@ -46,7 +46,7 @@ async function runAllTests() {
|
||||
|
||||
try {
|
||||
console.log('\n🎯 Apply Tests (Effective States in Apply)');
|
||||
console.log('-' * 42);
|
||||
console.log('-'.repeat(42));
|
||||
results.apply = await runApplyTests();
|
||||
} catch (error) {
|
||||
console.error('Apply tests failed with error:', error.message);
|
||||
@ -54,7 +54,7 @@ async function runAllTests() {
|
||||
|
||||
try {
|
||||
console.log('\n🤖 Repository Instructions Tests');
|
||||
console.log('-' * 33);
|
||||
console.log('-'.repeat(33));
|
||||
const { runTests: runRepoInstructionsTests } = require('./test-repository-instructions');
|
||||
results.repoInstructions = await runRepoInstructionsTests();
|
||||
} catch (error) {
|
||||
@ -62,9 +62,9 @@ async function runAllTests() {
|
||||
}
|
||||
|
||||
// Summary
|
||||
console.log('\n' + '=' * 60);
|
||||
console.log('\n' + '='.repeat(60));
|
||||
console.log('📋 Test Suite Summary');
|
||||
console.log('=' * 60);
|
||||
console.log('='.repeat(60));
|
||||
|
||||
const testTypes = [
|
||||
{ name: 'Unit Tests', result: results.unit, emoji: '📊' },
|
||||
@ -82,7 +82,7 @@ async function runAllTests() {
|
||||
const passedCount = Object.values(results).filter(Boolean).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`);
|
||||
|
||||
if (passedCount === totalCount) {
|
||||
|
||||
34
test-integration.yml
Normal file
34
test-integration.yml
Normal 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
|
||||
Loading…
x
Reference in New Issue
Block a user