I’m trying to get some measure of BDD running for my project. Technical debt and all that. Ideally, what I would like is a setup that gives me as close to the equivalent of rSpec/Cucumber in Rails. On OS X.
Each time I do this, I run into some snag that simply makes me give up. I know that’s bad behavior, but I’ve invested quite a bit of time into getting something running and I’m coming up empty.
Here’s what I’d like to accomplish:
-
I don’t really need the keen browser overlay that Velocity gives me – in fact, it gets in the way of the login stuff I put at the top right of the screen.
-
I want to be able to write Given/When/Then tests but haven’t come up with the proper installation-fu to get Cuke running. I keep winding up with incompatibilities. Is there a known good set of steps to install this? I’ve tried xolvio:meteor-cucumber and it seems promising but I can’t get past the first step of getting the deliberately failing test example to build. I get type errors with
World
and then withmirror
. The example code on Github seems to have the same issues. I installed according to this on Github. -
I’ve tried mike:mocha and sanjo:jasmine for unit testing and found tests designed to fail often pass and tests that should pass sometimes fail. Jasmine seems more full-featured, but mocha with sinon seem like they almost exactly approximate it. Again, it seems difficult to trust tests that are not going red when they should and then transitioning to green when fixed.
I’ve done a ton of testing with rSpec and Cucumber and just want to carry this over into my Meteor development, but strangely, can’t get the test harness working.
Am I being too vague here or is anyone else experiencing issues getting test tools installed? What to do…?