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

Feature request: Add a setup keyword to @testmodule so that it can depend on another @testmodule #93

Open
briochemc opened this issue Sep 26, 2024 · 0 comments

Comments

@briochemc
Copy link

Sometimes one's tests do not rely on all the parts of one's setup. In this case it would be nice to only run the part of the setup that is necessary. This could be done by allowing @testmodule to load other @testmodules.

Example use case: I have a setup that can be split into

  1. load data
  2. preprocess loaded data
  3. do some computation with preprocessed data

and I sometimes want to run tests that only require parts 1 or 2 and avoid the (potentially expensive) part 3. Right now I have a unique @testmodule that does 1, 2, and 3. It would be great to be able to split these into separate @testmodules that depend on each other (1 -> 2 -> 3).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant