-
-
Notifications
You must be signed in to change notification settings - Fork 455
Closed
Labels
Description
I was thinking it would be great if we could pass a callable class as the second argument.
In this way the entire test would be encapsulated within classes.
I think it would be great feature! Since the tests would be very clean and we could apply design patterns for the different test classes.
For example. Given the next test:

The following test class can be written:

You could even force these "test classes" to have the given-when-then methods to be printed on the report and not need a description in the test() and it() functions 😍.
Reactions are currently unavailable
