Skip to content

Pattern: Specify how to generate test code #48

@yuhattor

Description

@yuhattor

Description

When it comes to testing, specific instructions can be a great way to make sure you're covering all the necessary scenarios. Instead of giving vague instructions like "add unit tests," you can provide concrete details about the testing frameworks and the number of cases you want to generate. This can be helpful in utilizing tools like GitHub Copilot, where specifying "use Junit and Mockito to add unit tests, testing at least 10 variations of valid and invalid input combinations" can yield a more accurate and comprehensive result.

https://www.ai-native.dev/docs/test/specify-test-valiation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Lv2 - Practically Viable Patterns

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions