forked from SwiftChainn/SwiftChain_Backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommit-mutation-testing.sh
More file actions
27 lines (21 loc) · 1.2 KB
/
Copy pathcommit-mutation-testing.sh
File metadata and controls
27 lines (21 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
# Commit script for Mutation Testing implementation (Issue #114)
echo "Staging mutation testing files..."
git add stryker.conf.json package.json .gitignore MUTATION_TESTING_SETUP.md MUTATION_TESTING_PR.md
echo "Committing changes..."
git commit -m "feat: Add mutation testing (StrykerJS) for service layer validation (Issue #114)
- Create stryker.conf.json with Service-layer-only mutation scope (src/services/**)
- Configure Jest runner integration with TypeScript type checker plugin
- Set break threshold at 60% (achievable baseline for iterative improvement)
- Add test:mutation npm script for running mutation tests
- Update .gitignore to exclude Stryker artifacts (.stryker-tmp, reports/)
- Include comprehensive documentation:
* MUTATION_TESTING_SETUP.md: detailed implementation guide
* MUTATION_TESTING_PR.md: PR description with expected results and follow-up guidance
All 24 services covered for mutation testing. No application code changes.
Initial run will establish baseline mutation score for test quality validation."
echo "Complete! Branch ready to push."
echo ""
echo "Next steps:"
echo " git push -u origin feature/socket-metrics-enhancements"
echo " npm install && npm run test:mutation"