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 Property Based Tests #2

Open
xedin opened this issue Nov 4, 2015 · 2 comments
Open

Add Property Based Tests #2

xedin opened this issue Nov 4, 2015 · 2 comments
Milestone

Comments

@xedin
Copy link
Owner

xedin commented Nov 4, 2015

Using one of the quickcheck implementations.

@xedin xedin added this to the 3.x milestone Nov 4, 2015
@ifesdjeen
Copy link

@xedin would you like to use JVM based implementation for it (for unit tests), or something like Haskell quickcheck (in this case it'd be functional / integration tests)?

@jrwest
Copy link
Collaborator

jrwest commented Nov 30, 2015

The plan is to use ScalaCheck (http://scalacheck.org) because it has support for stateful property-based tests. We also considered Clojure's test.check because it has the better shrinking on the JVM but it lacks a stateful component.

The tests I started focused on single node correctness by comparing search results from the SASI API with results from a well-known database like H2 or SQLite. I got pulled into something else while working on good query generation, which is one of the big parts I had yet to finish.

Sent from my iPhone

On Nov 30, 2015, at 04:56, αλεx π [email protected] wrote:

@xedin would you like to use JVM based implementation for it (for unit tests), or something like Haskell quickcheck for integration tests (in this case it'd be functional / integration tests).


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants