-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
New testing API #84
New testing API #84
Conversation
I like it! Would like @dgeb and/or @stefanpenner to review also. Definitely need deprecations on the existing things I think... |
I like this approach too. I'm in favor of using mocha's My only real issue is with the method name I regret cargo-culting the term Open to suggestions here. |
Yes, good to consider the implications of the testing RFC and aim for consistency with ember-qunit. |
@Turbo87 This looks like a much welcome improvement! |
@rwjblue can we merge this? any more comments? |
1️⃣ 2️⃣ 3️⃣ |
I'm 👍 . I'd like a 👍 /:-1: from @dgeb and/or @trentmwillis before landing... |
Given that I addressed everything in #84 (comment) I assumed that he was 👍 too |
@dgeb @trentmwillis ping 😉 |
👍 didn't review the code, but I agree with this approach. Primarily, I like that it provides better separation between the default test framework and the Ember-specific test helpers. I also believe this will make it easier to retain all the default behaviors of the underlying framework (something we've had issues with in ember-qunit). |
🎉 |
The old testing API is sort-of using inheritance on the
describe()
function to setup and teardown all the necessary pieces. The proposed new testing API is using composition instead via the newsetupModuleTest()
functions.it()
with original from MochasetupModuleTest()
and related functionsBefore:
After:
/cc @rwjblue @stefanpenner