201-created / ember-cli-acceptance-test-helpers

A set of useful test helpers for ember acceptance tests.
https://www.npmjs.com/package/ember-cli-acceptance-test-helpers
MIT License
47 stars 17 forks source link

Using Mocha #7

Open backspace opened 9 years ago

backspace commented 9 years ago

I made a fork of your project for use with Mocha, which wasn’t too difficult because of your clever wrap-in-expectation isolation.

Do you think it’s at all feasible to merge these and configure with a flag in config/environment.js? My amateur suspicion is that it’s not feasible because of the different dependencies in bower.json and package.json.

bantic commented 9 years ago

@backspace Thanks for doing that, and that was exactly the reasoning behind wrap-in-expectation, glad that worked out.

I need to investigate a little more about how to interop with Mocha. The Ember Test Adapter, which afaik only provides a unified interface to async start/stop, would ideally provide the framework-agnostic methods (things like module/suite creation/setup/teardown, test creation a la QUnit.test and mocha's it, and ideally even test assertions).

I am going to add a "feature" label to this issue and keep it open for now as I investigate.

Feel free to issue a PR to put a link to your fork in this repo's README