Welltested Docs
v1.x.x
v1.x.x
  • Welltested AI
    • Set up
    • Unit Tests
      • Annotation
      • Generate Tests
      • Save Tests
      • Good to Knows
        • Custom Testcases
        • Regenerate Bad Tests
        • The Batching Rule
    • FAQs
      • Paid Plans
      • Code Privacy
      • Support
    • IDE Assist
      • Commands
      • Code Actions
    • Testability Guidelines
Powered by GitBook
On this page
  1. Welltested AI
  2. Unit Tests
  3. Good to Knows

Custom Testcases

We provide you with the option to specify your own testcases for any functions. This helps:

  • teams following Test Driven Development

  • developers having complex functions in their codebase with quirky cases.

  • or to limit the scope of testing of a certain function.

One can specify these cases in natural language with @Testcases annotation

@Welltested()
class Auth {
    @Testcases(['Throws exception when email is empty'])
    Future<User> logInUser() {...}
}
PreviousGood to KnowsNextRegenerate Bad Tests