ClinetestingTesting

Testing Cline Rules

Cline rules for testing: advanced testing patterns, observability-driven testing, and test automation.

.clinerules
- Use testcontainers for integration tests with real database and service dependencies
- Apply golden file testing for complex output (JSON, HTML, generated code)
- Use fuzzing (go-fuzz, cargo fuzz, atheris) for parsers and serializers
- Apply structured test logging to correlate test failures with system events
- Use test impact analysis to run only tests affected by code changes
- Apply approval testing for complex business logic with human-verified outputs
- Generate test data at scale with custom generators for performance tests
- Use chaos testing to validate timeout and circuit breaker configurations

How to use with Cline

Create a `.clinerules` file in your project root. Cline reads this file and applies the rules to all AI-assisted coding.

#testing#cline#testcontainers#fuzzing#coding-rules

Related Rules