-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[Quest] Mocha Blueprints for RFCs 232/268 #16863
Comments
An ember-mocha with the newer APIs hadn’t landed at that point (the repo needed more work before it was ready). I think at this point the best path is to make a quest style issue with a checklist and guidance. Generally speaking these efforts move forward fairly quickly. I personally would love to see updated blueprints land in time for 3.4 (current beta). |
@rwjblue I copied over the quest items from the qunit issue here to turn this into a quest for updating the mocha blueprints. Let me know if this plan seems sound (I'm a little out of the loop). |
issue |
I'll probably need help with the initializer tests as they seem to differ from qunit in ways that I can't quite understand the "right" way to write them |
Sorry for the delays here, I was on vacation and am only finally getting caught back up. I merged the ones that seemed ready, and commented on some of the others (needing a rebase / restarting CI for flakyness / etc). |
I am interested in wrapping this up. @Dhaulagiri can you elaborate on this? How/why would the Mocha tests have to differ? |
@simonihmig i wish I had been more specific here, but if I recall correctly if I tried to mimic the same application test setup as the qunit tests I was running into unexpected errors in the mocha tests. |
With the above two PRs being merged, the remaining points can be checked off and this issue closed! 🎉 |
Thanks!!! |
Background
#15933 updated the blueprints for Qunit to reflect the changes made in RFC 232 and RFC 268. As of ember-mocha 0.14.0 we can implement these same blueprints for Mocha tests as well.
The desired behavior when generating testing blueprints is to generate "Simplified Mocha" style tests if supported by the host app. We have several tasks below to extend the blueprints to support the "Simplified Mocha" style blueprints alongside the legacy, and ember-mocha blueprints.
Tasks
mocha-rfc-232-files
which will be where the "Simplified Mocha" blueprints will live in each of the blueprint test folders (e.gblueprints/component-test/mocha-rfc-232-files/
). The decision to use themocha-rfc-232-files
directory should be based on the host'sember-mocha
version<type>-test
"simplified Mocha" blueprintsThe text was updated successfully, but these errors were encountered: