I recently began to move all my projects over to BusterJS, but hit a few roadblocks with using buster's spec model.For example, a toBeUndefined matcher does not exist, and I can't seem to find a simple way to test for not just an error, but the error message itself.
I thought of modifying all my test cases but then realised the benefit of a buster-jasmine adapter (in the manner of jasmine's jsTestDriver adapter). There are many advantages to this:1. Quickly and easily allow specs to run on BusterJS2. Maintain a familiar BDD syntax3. Access to Jasmine plugins4. Add Jasmine users to the BusterJS community, always a bonus!
I've got the Jasmine side of the adapter figured out - this is a matter of creating a new JsApiReporter and adding it to the runner, then listening for spec, suite and runner results.
Now I can't seem to find a way to get these results into Buster. Would anyone here have any idea where I should begin looking? I'm currently snooping around the buster-test and buster-test-cli module's, without much luck.
Another approach would be to call buster.spec.expose() then add a bit of magic to the expect() function, to allow the use of Jasmine matchers, and report the result back to the Buster environment.
Sure, that sounds good!