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

How to handle group args? #5

Open
LeaVerou opened this issue Nov 13, 2023 · 0 comments
Open

How to handle group args? #5

LeaVerou opened this issue Nov 13, 2023 · 0 comments

Comments

@LeaVerou
Copy link
Collaborator

LeaVerou commented Nov 13, 2023

Currently, per our docs, any test properties set on a group will be inherited by the group's tests.

We don't do this right now for args. Not sure what's the best way to handle this to cover the most use cases:

  1. Use it as a fallback for tests with no args, ignore it for tests with their own args.
  2. Prepend its values to test-specified args (recursively), essentially using it for currying.
  3. Continue to do nothing

I'm leaning towards 2, but not 100% sure.

@LeaVerou LeaVerou reopened this Nov 30, 2023
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