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

Test more of gentest #4

Open
7 tasks
graue opened this issue Aug 6, 2014 · 4 comments
Open
7 tasks

Test more of gentest #4

graue opened this issue Aug 6, 2014 · 4 comments

Comments

@graue
Copy link
Owner

graue commented Aug 6, 2014

Using gentest to test itself seems dodgy, so I'm testing it with Mocha right now with explicit calls to gentest.sample and assertions about the generated values. I think this is fine for what it is, but much more should be tested, including a few higher-order generators that have been left out:

  • test types.fmap
  • test types.bind
  • test types.suchThat
  • test shrinking of each type
  • test Property
  • test Runner
  • add something to measure test coverage

Also, it might be neat to test gentest by writing properties known to be true about the JavaScript standard library, and properties known to be false for specific inputs (making sure it finds those inputs).

@dan-vidoni
Copy link

I'd like to help with the mocha tests but it's the first os contribution for me so I'll need some guidance if possible :)

@graue
Copy link
Owner Author

graue commented May 28, 2018

Hi Dan! While I appreciate the desire to help, I don't maintain this package anymore. You might have better luck contributing to a mature project. Some have contribution guidelines and a list of good first issues, like React.

@hath995
Copy link

hath995 commented May 28, 2018

I would recommend taking a look at another js/ts property based testing library fast-check as it is under active development and not written in haskell in js style or clojurescript.

@dan-vidoni
Copy link

cool, thank you 👍

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

3 participants