Skip to content
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

QUnit Blueprints Quest Issue #15933

Closed
14 tasks done
alexander-alvarez opened this issue Dec 6, 2017 · 30 comments
Closed
14 tasks done

QUnit Blueprints Quest Issue #15933

alexander-alvarez opened this issue Dec 6, 2017 · 30 comments

Comments

@alexander-alvarez
Copy link
Contributor

alexander-alvarez commented Dec 6, 2017

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 ember-cli@2.17), 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...

@rwjblue
Copy link
Member

rwjblue commented Dec 6, 2017

Awesome, thanks for organizing this @alexander-alvarez!

@rwjblue rwjblue changed the title Qunit Blueprints Quest Issue QUnit Blueprints Quest Issue Dec 6, 2017
@Turbo87
Copy link
Member

Turbo87 commented Dec 6, 2017

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

@Turbo87
Copy link
Member

Turbo87 commented Dec 6, 2017

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

@rwjblue
Copy link
Member

rwjblue commented Dec 6, 2017

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

@rwjblue
Copy link
Member

rwjblue commented Dec 6, 2017

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

@snewcomer
Copy link
Contributor

Doing the helper-test right now.

@snewcomer snewcomer mentioned this issue Dec 7, 2017
2 tasks
@RobbieTheWagner
Copy link
Member

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

@Turbo87
Copy link
Member

Turbo87 commented Dec 7, 2017

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

@RobbieTheWagner
Copy link
Member

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

@rwjblue
Copy link
Member

rwjblue commented Dec 7, 2017

Updated description:

  • 🔒 route-test for @rwwagner90
  • helper-test
  • component-test

@snewcomer
Copy link
Contributor

snewcomer commented Dec 7, 2017

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

@christophermlne
Copy link

If there's anything left I could take one.

@alexander-alvarez
Copy link
Contributor Author

alexander-alvarez commented Dec 7, 2017

@christophermlne mixin, service, and util are still up for grabs

@snewcomer
Copy link
Contributor

Taking the utils. @christophermlne lmk if you want to tackle that one or want to take on either service or mixin!

@boyanyordanov
Copy link
Contributor

I will try to do mixin and if I manage I will look into service as well.
I haven't contributed to ember yet so I don't know if I'll be in over my head.

@Turbo87
Copy link
Member

Turbo87 commented Dec 8, 2017

I haven't contributed to ember yet so I don't know if I'll be in over my head.

@boyanyordanov don't worry, we're here to help you if you have questions :)

@boyanyordanov
Copy link
Contributor

I'll go ahead and add a PR for service-test too.

jayjayjpg added a commit to jayjayjpg/guides that referenced this issue Feb 11, 2018
This updates the testing section about helpers according to the new
Ember Qunit testing patterns proposed in RFC#232.
jayjayjpg added a commit to jayjayjpg/guides that referenced this issue Feb 11, 2018
This updates the controller testing section according to the new Ember
Qunit testing patterns proposed in RFC#232.
jayjayjpg added a commit to jayjayjpg/guides that referenced this issue Feb 11, 2018
This updates the route testing section according to the new Ember QUnit
testing patterns proposed in RFC#232.
jayjayjpg added a commit to jayjayjpg/guides that referenced this issue Feb 11, 2018
This updates the model testing section according to the new Ember Qunit
testing patterns proposed in RFC#232.
jayjayjpg added a commit to jayjayjpg/guides that referenced this issue Feb 11, 2018
This updates the introduction into testing introducing new concepts of
the Ember Qunit testing API proposed in RFC#232 and RFC#268.
jayjayjpg added a commit to jayjayjpg/guides that referenced this issue Feb 11, 2018
This updates the title of the former "Unit Testing Basics" section to
"Testing Basics" to avoid talking about "container" tests in an originally
"unit" test focused section.
jayjayjpg added a commit to jayjayjpg/guides that referenced this issue Feb 11, 2018
This updates the integration testing section according to the new Ember
Qunit testing patterns proposed in RFC#232.
jayjayjpg added a commit to jayjayjpg/guides that referenced this issue Feb 11, 2018
This updates the testing section about helpers according to the new
Ember Qunit testing patterns proposed in RFC#232.
jayjayjpg added a commit to jayjayjpg/guides that referenced this issue Feb 11, 2018
This updates the controller testing section according to the new Ember
Qunit testing patterns proposed in RFC#232.
jayjayjpg added a commit to jayjayjpg/guides that referenced this issue Feb 11, 2018
This updates the route testing section according to the new Ember QUnit
testing patterns proposed in RFC#232.
jayjayjpg added a commit to jayjayjpg/guides that referenced this issue Feb 11, 2018
This updates the model testing section according to the new Ember Qunit
testing patterns proposed in RFC#232.
jayjayjpg added a commit to jayjayjpg/guides that referenced this issue Feb 11, 2018
This updates the introduction into testing introducing new concepts of
the Ember Qunit testing API proposed in RFC#232 and RFC#268.
jayjayjpg added a commit to jayjayjpg/guides that referenced this issue Feb 11, 2018
This updates the title of the former "Unit Testing Basics" section to
"Testing Basics" to avoid talking about "container" tests in an originally
"unit" test focused section.
jayjayjpg added a commit to jayjayjpg/guides that referenced this issue Feb 11, 2018
This updates the controller testing section according to the new Ember
Qunit testing patterns proposed in RFC#232.
jayjayjpg added a commit to jayjayjpg/guides that referenced this issue Feb 11, 2018
This updates the route testing section according to the new Ember QUnit
testing patterns proposed in RFC#232.
jayjayjpg added a commit to jayjayjpg/guides that referenced this issue Feb 11, 2018
This updates the model testing section according to the new Ember Qunit
testing patterns proposed in RFC#232.
jayjayjpg added a commit to jayjayjpg/guides that referenced this issue Feb 11, 2018
This updates the introduction into testing introducing new concepts of
the Ember Qunit testing API proposed in RFC#232 and RFC#268.
jayjayjpg added a commit to jayjayjpg/guides that referenced this issue Feb 11, 2018
This updates the title of the former "Unit Testing Basics" section to
"Testing Basics" to avoid talking about "container" tests in an originally
"unit" test focused section.
jayjayjpg added a commit to jayjayjpg/guides that referenced this issue Feb 12, 2018
This updates the acceptance testing section including its code examples
according to the new Ember Qunit Pattern proposed through RFC#268.
jayjayjpg added a commit to jayjayjpg/guides that referenced this issue Feb 12, 2018
This updates the unit testing section including code examples according
to the new Ember Qunit Testing Patterns proposed in RFC#232.
jayjayjpg added a commit to jayjayjpg/guides that referenced this issue Feb 12, 2018
This updates the integration testing section according to the new Ember
Qunit testing patterns proposed in RFC#232.
jayjayjpg added a commit to jayjayjpg/guides that referenced this issue Feb 12, 2018
This updates the testing section about helpers according to the new
Ember Qunit testing patterns proposed in RFC#232.
jayjayjpg added a commit to jayjayjpg/guides that referenced this issue Feb 12, 2018
This updates the controller testing section according to the new Ember
Qunit testing patterns proposed in RFC#232.
jayjayjpg added a commit to jayjayjpg/guides that referenced this issue Feb 12, 2018
This updates the route testing section according to the new Ember QUnit
testing patterns proposed in RFC#232.
jayjayjpg added a commit to jayjayjpg/guides that referenced this issue Feb 12, 2018
This updates the model testing section according to the new Ember Qunit
testing patterns proposed in RFC#232.
jayjayjpg added a commit to jayjayjpg/guides that referenced this issue Feb 12, 2018
This updates the introduction into testing introducing new concepts of
the Ember Qunit testing API proposed in RFC#232 and RFC#268.
jayjayjpg added a commit to jayjayjpg/guides that referenced this issue Feb 12, 2018
This updates the title of the former "Unit Testing Basics" section to
"Testing Basics" to avoid talking about "container" tests in an originally
"unit" test focused section.
@rwjblue
Copy link
Member

rwjblue commented Apr 21, 2018

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
Projects
None yet
Development

No branches or pull requests

8 participants