Skip to content

test: improve coverage for mcp-config and detector#5

Merged
Alenryuichi merged 1 commit intomainfrom
test/improve-coverage
Feb 3, 2026
Merged

test: improve coverage for mcp-config and detector#5
Alenryuichi merged 1 commit intomainfrom
test/improve-coverage

Conversation

@Alenryuichi
Copy link
Owner

Summary

Add unit tests to improve code coverage for \ and \ modules.

Changes

New Tests (10 total)

mcp-config.test.ts (+9 tests)

  • \ - should return false for unknown IDE
  • \ - should configure multiple IDEs
  • \ - should handle mixed valid and invalid IDEs
  • \ - cursor, claude, claude-desktop, gemini paths
  • \ - invalid JSON handling, cursor config

detector.test.ts (+1 test)

  • \ - should return status for all dependencies

Coverage Improvement

Module Before After Change
detector.ts 3.27% 68.85% +65.58%
mcp-config.ts 24.34% 33.55% +9.21%
Total 23.12% 27.67% +4.55%

Testing

\\

- Add 9 tests for mcp-config.ts (multi-IDE, edge cases, path validation)
- Add 1 test for detector.ts (checkAllDependencies integration)
- Improve coverage: detector.ts 3.27% → 68.85%, mcp-config.ts 24.34% → 33.55%
- Total tests: 128 → 138 (all passing)
- Update test summary in _bmad-output
@Alenryuichi Alenryuichi merged commit ce87938 into main Feb 3, 2026
3 checks passed
@Alenryuichi Alenryuichi deleted the test/improve-coverage branch February 3, 2026 07:27
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