Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions .github/workflows/cross-platform-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]

jobs:
test:
Expand Down Expand Up @@ -49,13 +48,13 @@ jobs:
run: npm test -- src/__tests__/integration/e2e-scenarios.test.ts

- name: Run config builder comprehensive tests
run: npm test -- config-builder-comprehensive.test.ts
run: npm test -- src/__tests__/config-builder.test.ts

- name: Run template system comprehensive tests
run: npm test -- template-system-comprehensive.test.ts
run: npm test -- src/__tests__/integration/template-loading.test.ts

- name: Run generator comprehensive tests
run: npm test -- generator-comprehensive.test.ts
run: npm test -- src/__tests__/integration/generator.test.ts

- name: Test CLI command (Unix)
if: runner.os != 'Windows'
Expand Down Expand Up @@ -114,7 +113,7 @@ jobs:
# Note: Actual scaffolding test would be interactive
# For now, just verify the CLI can be invoked
node dist/index.js --help
echo " CLI is executable and responsive"
echo "[OK] CLI is executable and responsive"

- name: Test scaffolding (Windows)
if: runner.os == 'Windows'
Expand All @@ -126,7 +125,7 @@ jobs:

# Verify the CLI can be invoked
node dist/index.js --help
Write-Output " CLI is executable and responsive"
Write-Output "[OK] CLI is executable and responsive"

lint:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -175,7 +174,7 @@ jobs:
echo "dist/index.js not found"
exit 1
fi
echo " Build artifacts verified"
echo "[OK] Build artifacts verified"
shell: bash

- name: Verify TypeScript definitions
Expand All @@ -184,5 +183,5 @@ jobs:
echo "dist/index.d.ts not found"
exit 1
fi
echo " TypeScript definitions verified"
echo "[OK] TypeScript definitions verified"
shell: bash
11 changes: 1 addition & 10 deletions .github/workflows/renovate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,16 @@ jobs:
renovate:
name: Run Renovate Bot
runs-on: ubuntu-latest
env:
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKE }}

steps:
- name: Validate Renovate token
if: ${{ env.RENOVATE_TOKEN == '' }}
run: |
echo "RENOVATE_TOKE is not configured."
echo "Set repository secret RENOVATE_TOKE (fine-grained token with Contents: Read/Write and Pull requests: Read/Write)."
exit 1

- name: Checkout repository
uses: actions/checkout@v4

- name: Run Renovate
uses: renovatebot/github-action@v44.0.3
with:
configurationFile: renovate.json
token: ${{ secrets.RENOVATE_TOKE || github.token }}
token: ${{ github.token }}
env:
LOG_LEVEL: debug
RENOVATE_REPOSITORIES: ${{ github.repository }}
36 changes: 18 additions & 18 deletions COMPREHENSIVE_TESTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ Comprehensive testcases have been added to ensure **production-ready quality** a

## New Test Files Added

### 1. **config-builder-comprehensive.test.ts**
### 1. **config-builder.test.ts**

**Location**: `src/__tests__/config-builder-comprehensive.test.ts`
**Location**: `src/__tests__/config-builder.test.ts`

Tests the configuration builder and validation system.

Expand All @@ -30,14 +30,14 @@ Tests the configuration builder and validation system.
**Test Cases**: 50+

```bash
npm test -- config-builder-comprehensive.test.ts
npm test -- config-builder.test.ts
```

---

### 2. **template-system-comprehensive.test.ts**
### 2. **integration/template-loading.test.ts**

**Location**: `src/__tests__/template-system-comprehensive.test.ts`
**Location**: `src/__tests__/integration/template-loading.test.ts`

Tests the template registry and template composition system.

Expand All @@ -56,14 +56,14 @@ Tests the template registry and template composition system.
**Test Cases**: 40+

```bash
npm test -- template-system-comprehensive.test.ts
npm test -- integration/template-loading.test.ts
```

---

### 3. **generator-comprehensive.test.ts**
### 3. **integration/generator.test.ts**

**Location**: `src/__tests__/generator-comprehensive.test.ts`
**Location**: `src/__tests__/integration/generator.test.ts`

Tests the project generator for actual project creation.

Expand All @@ -86,7 +86,7 @@ Tests the project generator for actual project creation.
**Test Cases**: 50+

```bash
npm test -- generator-comprehensive.test.ts
npm test -- integration/generator.test.ts
```

---
Expand Down Expand Up @@ -189,18 +189,18 @@ npm test -- src/__tests__/integration/e2e-scenarios.test.ts
6. **Config Builder Comprehensive**

```
npm test -- config-builder-comprehensive.test.ts
npm test -- config-builder.test.ts
```

7. **Template System Comprehensive**

```
npm test -- template-system-comprehensive.test.ts
npm test -- integration/template-loading.test.ts
```

8. **Generator Comprehensive**
```
npm test -- generator-comprehensive.test.ts
npm test -- integration/generator.test.ts
```

### CI Matrix
Expand All @@ -223,9 +223,9 @@ npm test
### Specific Test Suite

```bash
npm test -- config-builder-comprehensive.test.ts
npm test -- template-system-comprehensive.test.ts
npm test -- generator-comprehensive.test.ts
npm test -- config-builder.test.ts
npm test -- integration/template-loading.test.ts
npm test -- integration/generator.test.ts
npm test -- src/__tests__/integration/e2e-scenarios.test.ts
```

Expand Down Expand Up @@ -310,7 +310,7 @@ The CI workflow automatically:

## What Each Test File Tests

### config-builder-comprehensive.test.ts
### config-builder.test.ts

**Purpose**: Ensure configuration system works correctly

Expand All @@ -326,7 +326,7 @@ Tests:

---

### template-system-comprehensive.test.ts
### integration/template-loading.test.ts

**Purpose**: Ensure templates load correctly for all configs

Expand All @@ -341,7 +341,7 @@ Tests:

---

### generator-comprehensive.test.ts
### integration/generator.test.ts

**Purpose**: Ensure projects are generated correctly

Expand Down
Loading