greenyouse / chenex

Feature expressions for Clojure(Script)
BSD 2-Clause "Simplified" License
2 stars 0 forks source link

generative testing #7

Open greenyouse opened 9 years ago

greenyouse commented 9 years ago

My testing for this library has been horrible. If people are actually going to use it, I'll need a more powerful test suite to know that the code works. The test.generative library seems like a good fit if I can figure out how to randomly generate chenex feature expressions with it.

greenyouse commented 9 years ago

I guess the problem is more "embedding" chenex feature expressions in lots of random clojure code and seeing where my parser fails. The main fn to tweak is greenyouse.chenex.parser/node-filter. Right now it covers all sequential data structures, maps, and sets. There are probably other data types that I'm missing though and I'm almost sure that there are weird scenarios where the parser won't find feature expressions.

greenyouse commented 9 years ago

I've had some trouble writing a generative test that can embed feature exprs in random spots in a random chunk of code. For now there is one new test that runs without feature exprs just to make sure the parser can handle normal inputs.

I want to get the embedded test eventually but I currently have more important stuff to do and (AFAIK) the parser should work fine with all of the vanilla Clojure data structures.