You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: Add CI/CD integration requirements for test suites
- Updated scripts/tests/unit.sh to install prerequisites before running tests
- Added install-dev step for asyncapigenerator tests to fix CI failures
- Added copilot instruction #14 requiring unit.sh updates for new projects
- Expanded CI/CD Integration section with comprehensive documentation:
- Current GitHub Actions workflow details
- Step-by-step guide for adding new test suites
- Examples for Python and TypeScript projects
- Local testing instructions
- Documented 5-minute timeout and coverage format requirements
- Added changelog entry explaining rationale and changes
Copy file name to clipboardExpand all lines: src/.github/copilot-instructions.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,14 @@
28
28
29
29
13.**Python environment setup** - For Python projects, always use `configure_python_environment` tool to set up the Python environment before running tests or installing dependencies. When VS Code prompts to select which requirements file to install, **always select `requirements-dev.txt`** (not `requirements.txt`) as it includes all testing dependencies plus production dependencies.
30
30
31
+
14.**Update unit.sh for CI/CD integration** - When adding tests for a new project, you **MUST** update `scripts/tests/unit.sh` to include:
32
+
- Installation of prerequisites (e.g., `make -C ./src/project-name install-dev` for Python projects)
33
+
- Execution of the test suite (e.g., `make -C ./src/project-name test`)
34
+
- The CI/CD pipeline runs `make test-unit` which calls `scripts/tests/unit.sh`
35
+
- This file is used by `.github/workflows/stage-2-test.yaml` in the "Run unit test suite" step
36
+
- Always test that the prerequisites install correctly before running tests
37
+
- Add a comment in unit.sh explaining what each section does
38
+
31
39
## Quick Reference
32
40
33
41
-**TESTING_PLAN.md**: Main testing plan document with progress tracker and changelog
-`scripts/tests/unit.sh` - Added install-dev step and comments
93
+
-`src/TESTING_PLAN.md` - Replaced "GitHub Actions Workflow (Future)" with comprehensive current implementation documentation
94
+
-**Rationale**: CI was failing because prerequisites weren't installed before running tests. This ensures future implementers understand the complete integration requirements.
95
+
-**Status**: CI/CD integration requirements now fully documented
0 commit comments