czlonkowski
|
e217d022d6
|
test: fix enhanced-config-validator tests for new return type
- Update tests to handle filterPropertiesByMode returning object with properties and configWithDefaults
- All tests now pass successfully
|
2025-09-29 18:11:15 +02:00 |
|
czlonkowski
|
2b54710fda
|
test: add unit tests for n8n manager and workflow diff handlers
|
2025-07-28 18:15:21 +02:00 |
|
czlonkowski
|
8e8771b1f4
|
test: implement critical service tests achieving 80%+ coverage
Phase 3.5 - Added comprehensive tests for critical services:
- n8n-api-client: 0% → 83.87% coverage (50 tests)
- All CRUD operations tested
- Retry logic and error handling
- Authentication and interceptors
- 7 tests skipped due to flaky promise rejection (needs fix)
- workflow-diff-engine: 0% → 90.06% coverage (44 tests)
- All diff operations tested
- Two-pass processing verified
- Workflow immutability ensured
- Edge cases covered
- n8n-validation: 0% → comprehensive coverage (68 tests)
- Zod schema validation
- Workflow structure validation
- Helper functions tested
- Fixed credential schema bug
- node-specific-validators: 2.1% → 98.7% coverage (143 tests)
- All major node types tested
- Operation-specific validation
- Security checks verified
- Auto-fix suggestions tested
- enhanced-config-validator: 71.42% → 94.55% coverage (+20 tests)
- Operation-specific paths covered
- Profile filters tested
- Error handling enhanced
- Next steps generation tested
Overall: 659 tests passing, 7 skipped
Code review identified areas for improvement including flaky test fixes
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-07-28 15:52:57 +02:00 |
|
czlonkowski
|
b49043171e
|
test: Phase 3 - Create comprehensive unit tests for services
- Add unit tests for ConfigValidator with 44 test cases (95.21% coverage)
- Create test templates for 7 major services:
- PropertyFilter (23 tests)
- ExampleGenerator (35 tests)
- TaskTemplates (36 tests)
- PropertyDependencies (21 tests)
- EnhancedConfigValidator (8 tests)
- ExpressionValidator (11 tests)
- WorkflowValidator (9 tests)
- Fix service implementations to handle edge cases discovered during testing
- Add comprehensive testing documentation:
- Phase 3 testing plan with priorities and timeline
- Context documentation for quick implementation
- Mocking strategy for complex dependencies
- All 262 tests now passing (up from 75)
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-07-28 14:15:09 +02:00 |
|