Skip to content

Test parameterisation  #15

Open
Open
@andreww

Description

@andreww

Is there value in adding material to cover simple test parameterisation?

I imagine this could fit in after edge and corner cases, reuse the sinc2d example, and make use of the @pytest.mark.parametrize decorator (docs are at https://docs.pytest.org/en/latest/parametrize.html). Essentially this could be "something else useful that pytest does" and could be a task of refactoring the collection of edge and corner case tests.

As I see it there are two down sides of this. First, it would make the lesson longer, and that's not necessarily a good thing. Second, it would make use of decorators, and these would probably be new to many learners.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions