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

Property-Based Testing with e.g. Hypothesis #41

Open
MarcoHuebner opened this issue Nov 21, 2023 · 0 comments
Open

Property-Based Testing with e.g. Hypothesis #41

MarcoHuebner opened this issue Nov 21, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@MarcoHuebner
Copy link
Collaborator

MarcoHuebner commented Nov 21, 2023

Issue:
Currently, our testing suite primarily relies on example-based testing, and while this is effective, incorporating property-based testing can further enhance the robustness of our test coverage. Property-based testing, with tools like Hypothesis, allows us to explore a broader range of input scenarios and automatically generate test cases based on specified properties.

Especially reduction of table format #19 and checking the available table numbers #29 could profit from edge case detection via Hypothesis - given the input data structures are easily reproducable within hypothesis.strategies.

Note: Hypothesis is just a suggestion, which I got to know last week.

Proposed Solution:

  • Determine the properties that should hold true for the identified test scenarios.
  • Document these properties to serve as the basis for property-based testing.

Implementation Steps:

  • Install and set up Hypothesis within the testing environment.
  • Identify specific functions or modules suitable for property-based testing.
  • Define properties for the identified test scenarios.
  • Implement property-based tests using Hypothesis.

Related Issues:
#19 , #29

@pmayd pmayd added the enhancement New feature or request label Feb 20, 2024
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

2 participants