Skip to content
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

Ability to create "case fixtures" #15

Closed
smarie opened this issue Nov 21, 2018 · 0 comments
Closed

Ability to create "case fixtures" #15

smarie opened this issue Nov 21, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@smarie
Copy link
Owner

smarie commented Nov 21, 2018

As of today a test function decorated with @case_data is a great way to perform the data retrieval inside the test function body: that way, if a single dataset fails to be retrieved, we do not fail the whole test suite.

However the fact that data retrieval is done inside the test function body might be a concern if test duration is monitored: the time spend to retrieve and/or parse each dataset is not "test duration" per se. Besides if users put some caching in place on their case functions, the first test's duration will be different from subsequent tests'.

For all those reasons it might be a better choice to allow users to create "case fixtures". They would work exactly the same way as current decorator (same arguments to specify where the cases are located and how to filter them).

Documentation would need to be improved then.

@smarie smarie added the enhancement New feature or request label Nov 21, 2018
@smarie smarie closed this as completed in 9ed34d4 Nov 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant