Skip to content

QUnit Blueprints Quest Issue #15933

Closed
Closed

Description

@alexander-alvarez

Background
We need to implement changes in blueprints and docs realted to RFC 232 and RFC 268.
(Some background for those unfamiliar http://rwjblue.com/2017/10/23/ember-qunit-simplication/)

As of ember-cli-qunit@^4.1.1 (which is in the default blueprint as of [email protected]), we can implement the "Simplified QUnit" style tests in all tests except for acceptance tests.
In a future release of ember-qunit (likely 3.2.x), we will be able to leverage the implementation of setupApplicationTest from RFC 268 for use in acceptance-tests. Once these changes are implemented upstream, we must implement the blueprint updates.
Currently, we have no way to generate these test files but we can run the ember-qunit-codemod to migrate test files and continue to iterate on the final output in the blueprint specific pull requests.

The desired behavior when generating testing blueprints is to, generate "Simplified QUnit" style tests if supported by the host app. We have several tasks below to extend the blueprints to support the "Simplified QUnit" style blueprints alongside the legacy, and ember-mocha blueprints. We can likely add to the behavior of test-framework-detector.js to support this other extension. Once these changes are completed we also need to update the guides to be consistent with the current ember-cli codebase. We should work with @rwjblue and the learning team (cc @locks) to determine how we best teach this.

Tasks


To pick up one of these items, please comment below and we'll update the checklist with :lock: @your-name-here...

Activity

  1. rwjblue commented on Dec 6, 2017

    @rwjblue
    Member

    Awesome, thanks for organizing this @alexander-alvarez!

  2. changed the title [-]Qunit Blueprints Quest Issue[/-] [+]QUnit Blueprints Quest Issue[/+] on Dec 6, 2017
  3. Turbo87 commented on Dec 6, 2017

    @Turbo87
    Member

    @alexander-alvarez should we use qunit for the new API blueprints and something else instead of qunit for the old blueprints? this would seem more intuitive to me 🤔

  4. Turbo87 commented on Dec 6, 2017

    @Turbo87
    Member

    also I'm wondering if we should do the implementation in https://github.com/alexander-alvarez/ember-qunit-nested-module-blueprints-polyfill first and once those are solid we can import them here

  5. rwjblue commented on Dec 6, 2017

    @rwjblue
    Member

    @Turbo87 - I'd prefer to land the "real" implementations first (so that the polyfill truly is a polyfill). If that turns out to be costly (or I'm too much of a blocker in landing PR's) we can swap to targeting the polyfill addon first...

  6. rwjblue commented on Dec 6, 2017

    @rwjblue
    Member

    OK, first implementation is done and landed (along with the test framework detector changes required to support the path forward). The game is afoot!

  7. snewcomer commented on Dec 7, 2017

    @snewcomer
    Contributor

    Doing the helper-test right now.

  8. RobbieTheWagner commented on Dec 7, 2017

    @RobbieTheWagner
    Member

    @rwjblue I'm always happy to work on blueprints. Want to assign a couple my way?

  9. Turbo87 commented on Dec 7, 2017

    @Turbo87
    Member

    @rwwagner90 choose one and announce it here, so that others are not doing the same work too :)

  10. RobbieTheWagner commented on Dec 7, 2017

    @RobbieTheWagner
    Member

    @Turbo87 I'm not picky, but I'll randomly choose route-test

  11. rwjblue commented on Dec 7, 2017

    @rwjblue
    Member

    Updated description:

    • 🔒 route-test for @rwwagner90
    • ✅ helper-test
    • ✅ component-test
  12. snewcomer commented on Dec 7, 2017

    @snewcomer
    Contributor

    Tackling controller && initializer && instance-initializer tests in 3 separate PR's!

  13. 137 remaining items

  14. rwjblue commented on Apr 21, 2018

    @rwjblue
    Member

    Thanks everyone for your hard work here!

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