In above example, we will generate unit tests for logInUser and logOutUser methods of Auth class.
Note: We currently don't support testing top-level (global) functions. Coming soon.
Testcases
Our testing AI auto decides smart exhaustive test cases for each function based on its use case and contextual code. However you can specify your own custom test cases for a method by adding @Testcases() annotation to them.
IDE Assist: You can also use Fetch Unit Testcasesto review unit test cases and also modify them.
Exclude Methods
By default, all methods in an annotated class are included. To exclude any method from testing, add their name to the excludedMethods list in the Welltested annotation.