Add integration testing guide and prompts

- docs/workflow/INTEGRATION-TESTING.md - Full guide on integration testing
  - What it is vs unit/e2e tests
  - 5 principles to test per integration point
  - Folder structure suggestions
  - Self-improving loop for human findings
- integration-tests/ - Template for project's integration tests
  - README.md - What to test (Feynman fills per project)
  - package.json - Test runner setup
  - scripts/setup.sh - Service startup
  - scripts/teardown.sh - Cleanup
- docs/workflow/WORKFLOW.md - Added integration testing references
- docs/workflow/AGENT-PROMPTS.md - Added integration testing prompts
- docs/workflow/INDEX.md - Updated file structure
This commit is contained in:
shokollm
2026-04-18 14:08:56 +00:00
parent 002596aea9
commit 224fff2761
8 changed files with 685 additions and 7 deletions

View File

@@ -0,0 +1,26 @@
#!/bin/bash
#
# Setup script for integration tests
# Run this before tests to start required services
#
# Edit this file to match your project's needs.
#
echo "=========================================="
echo "Integration Tests Setup"
echo "=========================================="
echo ""
# TODO: Add commands to start services
# Example:
# echo "Starting backend server..."
# cd ../backend && pnpm start &
# sleep 5
#
# echo "Starting database..."
# docker compose up -d db
echo "Setup complete. Services should be running."
echo ""
echo "Run tests with: pnpm test"
echo ""

View File

@@ -0,0 +1,23 @@
#!/bin/bash
#
# Teardown script for integration tests
# Run this after tests to clean up services
#
# Edit this file to match your project's needs.
#
echo "=========================================="
echo "Integration Tests Teardown"
echo "=========================================="
echo ""
# TODO: Add commands to stop services
# Example:
# echo "Stopping backend server..."
# pkill -f "node.*backend"
#
# echo "Stopping database..."
# docker compose down
echo "Teardown complete."
echo ""