Test Case Name Convention

D

Daniel Okoye

@daniel-okoye

·

Generate test case names following naming conventions.

73 copies0 forks
Share this prompt:
Generate test case names for this functionality.

Functionality:
{{functionality}}

Test scenarios: {{scenarios}}

Constraints:
- Format: should_[expectedBehavior]_when_[condition]
- Or: test_[methodName]_[scenario]_[expectedResult]
- Use camelCase or snake_case based on language
- Max 80 characters per name
- Be specific about the condition
- Be specific about the expected outcome
- No abbreviations that obscure meaning

Output test names for each scenario provided.

Details

Category

Coding

Use Cases

Test naming standardizationTest suite organizationTest documentation improvement

Works Best With

claude-opus-4.5gpt-5.2gemini-2.0-flash
Created Updated Shared

Related Prompts

Create your own prompt vault and start sharing