-
-
Notifications
You must be signed in to change notification settings - Fork 257
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
TestModuleFor{App,Acceptance} proposal #94
Comments
I guess I don't understand what you mean. |
Since we don't really need any special shenanigans to deal with bizarreness in Ember, this sort of thing likely lives in ember-qunit itself. |
Sorry if this is too cryptic. https://github.com/rwjblue/ember-qunit/pull/71 introduces a I'd like to push that forward, but it looks like that PR predates the |
Closes [emberjs/ember-test-helpers#94][94] and [rwjblue/ember-qunit#71][71]. [94]: emberjs/ember-test-helpers#94 [71]: https://github.com/rwjblue/ember-qunit/pull/71
Closes [emberjs/ember-test-helpers#94][94] and [rwjblue/ember-qunit#71][71]. [94]: emberjs/ember-test-helpers#94 [71]: https://github.com/rwjblue/ember-qunit/pull/71
Closes [emberjs/ember-test-helpers#94][94] and [rwjblue/ember-qunit#71][71]. [94]: emberjs/ember-test-helpers#94 [71]: https://github.com/rwjblue/ember-qunit/pull/71
Closes [emberjs/ember-test-helpers#94][94] and [rwjblue/ember-qunit#71][71]. [94]: emberjs/ember-test-helpers#94 [71]: https://github.com/rwjblue/ember-qunit/pull/71
Closes [emberjs/ember-test-helpers#94][94] and [rwjblue/ember-qunit#71][71]. [94]: emberjs/ember-test-helpers#94 [71]: https://github.com/rwjblue/ember-qunit/pull/71
Closes [emberjs/ember-test-helpers#94][94] and [rwjblue/ember-qunit#71][71]. [94]: emberjs/ember-test-helpers#94 [71]: https://github.com/rwjblue/ember-qunit/pull/71
We've been toying around with implementing something like this for use in one of our addons. Thus far, we've been writing all the code inside the addon, but with an eye for potentially extracting it out for inclusion into https://gist.github.com/Robdel12/c8470434a5e0ded666db It's been working really well thus far, but my primary concern is with these lines here https://gist.github.com/Robdel12/c8470434a5e0ded666db#file-test-helper-js-L2-L3 Since this class is embedded into our addon, it has access to the (dummy) application's class and config, but is that going to pose a problem if this code were to live in Also, the |
Unless anybody sees anything obviously flawed with this approach, we'll go ahead and submit the PR. |
@cowboyd I say go ahead, I have an outstanding PR to ember-cli/ember-cli, but I'm having some trouble with it. If we could get something working in this repo instead, I think we'd be better off. |
Closes [emberjs/ember-test-helpers#94][94] and [rwjblue/ember-qunit#71][71]. [94]: emberjs/ember-test-helpers#94 [71]: https://github.com/rwjblue/ember-qunit/pull/71
Closes [emberjs/ember-test-helpers#94][94] and [rwjblue/ember-qunit#71][71]. [94]: emberjs/ember-test-helpers#94 [71]: https://github.com/rwjblue/ember-qunit/pull/71
…nner Introduce `moduleForAcceptance` Closes [emberjs/ember-test-helpers#94][94] and [rwjblue/ember-qunit#71][71]. [94]: emberjs/ember-test-helpers#94 [71]: https://github.com/rwjblue/ember-qunit/pull/71
Added to |
WRT https://github.com/rwjblue/ember-qunit/pull/71
@rwjblue @stefanpenner I'm looking into baking this into switchfly/ember-test-helpers:
So that it's integration with ember-qunit would be as minimal as the rest.
I'm having trouble figuring out how, though.
Any ideas?
Will this work at all, or is it best left as a hand-rolled helper?
The text was updated successfully, but these errors were encountered: