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

Add support for parameterized testing #1

Closed
bitwizeshift opened this issue Feb 18, 2023 · 0 comments
Closed

Add support for parameterized testing #1

bitwizeshift opened this issue Feb 18, 2023 · 0 comments
Assignees
Labels
🔨 Enhancement New feature or request ✨ Feature New feature being added

Comments

@bitwizeshift
Copy link
Owner

bitwizeshift commented Feb 18, 2023

Parameterized testing is a staple of any unit-testing framework.

This issue is to track adding support for basing parameterized testing so that tests can operate with different inputs. In particular, the goal of this feature is:

  • Inputs can be accepted as function arguments, but specified as a simple parameter to the neotest attribute,
  • Multiple inputs produce the complete-graph of possible inputs. This means that a = [1, 2, 3] and b = [4, 5] will produce 6 total tests: (1, 4), (1, 5), (2, 4), (2, 5), (3, 4), (3, 5).
  • Specifying parameter inputs does not require the neotest parameters to be in the same order as function parameters
@bitwizeshift bitwizeshift self-assigned this Feb 20, 2023
@bitwizeshift bitwizeshift added 🔨 Enhancement New feature or request ✨ Feature New feature being added and removed 🔨 Enhancement New feature or request labels Feb 20, 2023
bitwizeshift added a commit that referenced this issue Feb 20, 2023
As a follow-up from completing #1, this include a new example test
that includes fixtures that also use parameters at the same time.

This is to verify that there have been no regressions from the recent
changes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 Enhancement New feature or request ✨ Feature New feature being added
Projects
None yet
Development

No branches or pull requests

1 participant