-
-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] New API Iteration #258
Conversation
Need to add |
Thanks to turbo87 for working on a very similar API in ember-mocha, this is largely a copy/paste of that effort...
@rwjblue rebased and added the |
Thanks Tobias!
|
@rwjblue looking at the examples above, do you want to use the test module name as the descriptor for the thing to be tested? that seems a little error prone to me and will not allow people to specify a more readable name explicitly like in the new Mocha API. |
I agree with @Turbo87. It should be like: module('Some description', function(hooks) {
setupIntegrationTest('component:foo-bar', hooks);
});
// or
module('Some description', buildIntegrationOptions('component:foo-bar', {})); |
@trentmwillis - The argument that you pass to |
Well for the ones that need it, I was just modifying the existing example. I assume it is still needed for unit tests. |
I spent a ton of time this weekend making progress on this. The first major step was to migrate ember-test-helper and ember-qunit to be "real" addons (to allow faster iteration here).
The next step is cleaning up some testing infrastructure in ember-test-helpers (to ensure that things work properly without jQuery) before starting in on the new API. You can follow that effort in emberjs/ember-test-helpers#215. After that lands (and we release 0.7.0 of ember-test-helpers), I will begin working on the "real" implementation of emberjs/rfcs#230 (which replaced this spike). |
The best way to help at the moment is likely to help us in testing ember-cli-qunit@4.1.0-beta.2 (feel free to join us in #dev-testing in the community slack). Once ember-cli-qunit@4.1.0-beta.2 is hammered on by a few different folks/apps/etc we can move it out of beta allowing further progress on the new API surface. |
Closed by #286. |
This is an effort to reduce ember-qunit's surface area, and leave the "testing framework" work to QUnit.
It is heavily inspired by the work that @Turbo87 did for ember-mocha (checkout their API here).
Sample integration test with the new API:
I've also added work to enable an even nicer API (IMHO of course) with nested modules, but that effort is blocked by qunitjs/qunit#977.
The nested modules API would look like: