Skip to content

[Quest] Mocha Blueprints for RFCs 232/268 #16863

Closed

Description

@Dhaulagiri

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

Activity

  1. rwjblue commented on Aug 4, 2018

    @rwjblue
    Member

    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).

  2. changed the title [-]No RFC 232/268 blueprints for Mocha test suites?[/-] [+][Quest] Mocha Blueprints for RFCs 232/268[/+] on Aug 4, 2018
  3. Dhaulagiri commented on Aug 4, 2018

    @Dhaulagiri
    ContributorAuthor

    @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).

  4. shadi4778 commented on Aug 17, 2018

    @shadi4778

    issue

  5. Dhaulagiri commented on Sep 4, 2018

    @Dhaulagiri
    ContributorAuthor

    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

  6. rwjblue commented on Sep 4, 2018

    @rwjblue
    Member

    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).

  7. simonihmig commented on Dec 3, 2018

    @simonihmig
    Contributor

    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

    I am interested in wrapping this up. @Dhaulagiri can you elaborate on this? How/why would the Mocha tests have to differ?

  8. Dhaulagiri commented on Dec 3, 2018

    @Dhaulagiri
    ContributorAuthor

    @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.

  9. simonihmig commented on Dec 26, 2018

    @simonihmig
    Contributor

    Here are two PRs for the missing (instance-) initializer blueprints: #17411, #17412

  10. simonihmig commented on Mar 16, 2019

    @simonihmig
    Contributor

    With the above two PRs being merged, the remaining points can be checked off and this issue closed! 🎉

  11. Dhaulagiri commented on Mar 18, 2019

    @Dhaulagiri
    ContributorAuthor

    Thanks!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions