Welltested Docs
v2.x.x
v2.x.x
  • Documentation
    • 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
      • Using with FVM
    • Testability Guidelines
Powered by GitBook
On this page

Was this helpful?

  1. Documentation
  2. Unit Tests
  3. Good to Knows

The Batching Rule

PreviousRegenerate Bad TestsNextFAQs

Last updated 1 year ago

Was this helpful?

When getting started with welltested, the first few test generations may have syntax errors. However as you fix the issues and save the tests, welltested starts learning from them and provides better subsequent results.

Hence we strongly recommend creating tests in batches of 1, 3, 5, 7 and 10.

Batching procedure

Start out with 3 methods that are different from each other in terms of syntax and dependencies used. Fix any syntax issues in generated tests and save them to the system.

Repeat the process with 5, 7, 10 and more and you'll see that we start performing better with each iteration.

💡: To select specific methods, use or .

excludeMethods
scoped arguments