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 #41

Open
jtec opened this issue Jan 21, 2024 · 0 comments
Open

Property-based testing #41

jtec opened this issue Jan 21, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@jtec
Copy link
Owner

jtec commented Jan 21, 2024

The unit tests we have today test specific sets of inputs such as "Compute position of G02 at time t and compare to sp3 precise position".

Property-based testing takes this approach a step further. It allows us to formulate tests of the type "For a test within the set of existing satellites, and for a time within t0 and t1, the error between broadcast and sp3 position is always lower than 10 meters".

The testing framework then tries to find test inputs within the set of admissible inputs that break the code.

See e.g. https://semaphoreci.com/blog/property-based-testing-python-hypothesis-pytest

@jtec jtec added the enhancement New feature or request label Jan 21, 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

1 participant