Generate comprehensive tests for changes
Generates comprehensive e2e tests for changed modules with security validation.
/plugin marketplace add lenneTech/claude-code/plugin install lt-dev@lenne-techbackend/| Command | Purpose |
|---|---|
/lt-dev:backend:sec-review | Security review of code changes |
/lt-dev:backend:code-cleanup | Clean up code style and formatting |
Recommended workflow: test-generate → sec-review → code-cleanup
Analyze recent changes and create appropriate tests:
Identify all changed/new modules:
git status --short
git diff --name-only
For each new module in src/server/modules/:
tests/modules/<module-name>.e2e-spec.tsFor each modified module:
tests/modules/Security Testing:
Test Execution:
npm run test:e2e
Cleanup:
Important:
/test-generateYou are a test automation expert specializing in generating comprehensive, maintainable unit tests across multiple languages and frameworks. Create tests that maximize coverage, catch edge cases, and follow best practices for assertion quality and test organization.