Skip to content

feat: improve testing infrastructure and CI workflow#1

Merged
fedosov merged 2 commits into
mainfrom
feat/ci-workflow-improvements
Oct 28, 2025
Merged

feat: improve testing infrastructure and CI workflow#1
fedosov merged 2 commits into
mainfrom
feat/ci-workflow-improvements

Conversation

@fedosov
Copy link
Copy Markdown
Contributor

@fedosov fedosov commented Oct 28, 2025

Summary

This PR enhances the testing infrastructure and CI pipeline with comprehensive improvements:

Test Infrastructure (d0c03b7)

  • Fixed all 7 failing tests by correcting import patterns and test assertions
  • Enhanced Makefile with comprehensive test commands:
    • make test - Run tests in watch mode
    • make test-coverage - Generate coverage reports
    • make test-file FILE=path - Run specific test file
    • make lint / make lint-fix - Code quality checks
  • Added TESTING.md with detailed testing guide including framework overview, command reference, patterns, and best practices

CI Workflow Improvements (5d3c6fc)

  • Replaced basic CI workflow with production-ready version featuring:
    • Dependency caching via actions/setup-node for faster runs
    • Coverage reporting with --coverage flag
    • Coverage artifact upload with 30-day retention for inspection
    • Tested locally with act to verify workflow correctness

Test Results

  • ✅ All 13 tests passing
  • ✅ Coverage reports generated successfully
  • ✅ CI workflow validated with local testing

Files Changed

  • .github/workflows/ci.yml - New comprehensive CI workflow
  • Makefile - Enhanced with testing commands
  • TESTING.md - Complete testing documentation
  • src/utils/__tests__/retry-with-fallback.test.js - Fixed test assertions
  • src/utils/provider-manager.js - Minor test-related improvements

🤖 Generated with Claude Code

fedosov and others added 2 commits October 28, 2025 05:22
…documentation

Fixed all 7 failing tests by correcting import patterns and test assertions. Enhanced Makefile with comprehensive test commands (test, test-watch, test-coverage, test-file, lint, lint-fix). Created TESTING.md with detailed testing guide including framework overview, command reference, patterns, and best practices.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Replaced basic CI workflow with improved version featuring:
- Dependency caching via actions/setup-node for faster runs
- Test execution with coverage reporting (--coverage flag)
- Coverage artifact upload with 30-day retention
- Tested locally with act to verify workflow correctness

All 13 tests pass with coverage metrics generated successfully.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@fedosov fedosov merged commit 7d25b72 into main Oct 28, 2025
1 check passed
@fedosov fedosov deleted the feat/ci-workflow-improvements branch October 28, 2025 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant