New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test parameterisation #15

Open
andreww opened this Issue Sep 2, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@andreww
Contributor

andreww commented Sep 2, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment