Skip to content

Proposal: Test classes (callable class) #74

@matiechaza

Description

@matiechaza

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.

image

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:
image

The following test class can be written:
image

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 😍.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions