Posts

Showing posts with the label easyb

EasyB story fixed

The EasyB forums where helpful, and explained me that you can't mix the "given/when/then" and the "before/it" styles in the same story. That's what was causing the error. With that fixed, I moved the more complex scenarios in their own file, and everything comipiles and runs fine, with one exception: an older scenario fails. I committed anyway, but I'm investigating the original problem. I'm suspecting something is not quite coherent along all the examples, but I can't yet put my finger on it. In the meantime, I've created the equivalent Scala/specs project. It'll be interesting to test how it feels like...

Still no clues...

The code is in the repository, but it still doesn't run all the stories. I don't want to unit test all the stories inputs, though: it will defeat easyb's pourpose. I'm trying a pair of things seen in the forums, and eventually post a question there.

Back to unit tests

One thing that it doesn't seem easy with the easyB+groovy combination is getting a precise indication of what gone wrong. You can get a succesful build with a NPE in a scenario, and the resulting stacktrace is not very informative. So, we're back to unit testing to check basic functionality before passing the classes to behaviour testing. The commit I just made has a new unit test, that unfortunately doesn't pass. I'll work on it later.

EasyB+Maven woes

EasyB may make it easier, but not if you're in the maven camp. First, hit a subtle issue with the story naming. Now, easyb doesn't found the main classes. It may be my fault, since I meddled with the Maven builder, and it seems that the classes get compiled in bin-groovy, but CLI maven dies with the same problem, so it doesn't seem Eclipse-related. Now I modified the Groovy project properties so that the classess go in target/classes, but still no love...