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

Generative (Statistical) Testing #42

Open
farlee2121 opened this issue Apr 13, 2019 · 2 comments
Open

Generative (Statistical) Testing #42

farlee2121 opened this issue Apr 13, 2019 · 2 comments
Labels
question Further information is requested

Comments

@farlee2121
Copy link
Owner

Are there tools and would it be meaningful to run generated tests against all possible input like in clojure.

The big issue here is understanding what the expected outcome for a set of inputs would be.

@farlee2121 farlee2121 added the question Further information is requested label Apr 15, 2019
@farlee2121 farlee2121 changed the title Statistical Testing Generative (Statistical) Testing Jul 8, 2019
@farlee2121
Copy link
Owner Author

farlee2121 commented Jul 9, 2019

Idea: I could at the least prove that my component returns (doesn't crash or return junk) for every input. With this goal, I could use standard data generators for Theories (in xUnit) or TestCaseData (nUnit).
this would allow me to create a super simple test that handles a wide range of values, including dangerous values simply based on type reflection.

The core library could just be a type case generator. Then I could choose to expose that via theories, data prep, or other.

It would also be nice to write a test harness that automatically discovers components and runs these correctness tests.

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

No branches or pull requests

1 participant