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

Ensure the test suite runs with Octane's set of optional features. #18782

Merged
merged 4 commits into from
Mar 11, 2020

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented Feb 28, 2020

Prior to these change we would only run the test suite in "classic" mode,
and did not run the tests with the combination of octane optional features
setup.

This adds a new test run for "classic", and makes the default test run use
"octane"'s set of optional features.

@rwjblue rwjblue force-pushed the test-edition-properly branch from 14dc2fe to cfb74eb Compare February 28, 2020 01:58
tests/index.html Outdated Show resolved Hide resolved
@rwjblue

This comment has been minimized.

@rwjblue rwjblue force-pushed the test-edition-properly branch from cfb74eb to 7403b31 Compare February 28, 2020 13:30
Prior to these change we would only run the test suite in "classic"
mode, and did not run the tests with the combination of octane optional
features setup.

This adds a new test run for "classic", and makes the default test run
use "octane"'s set of optional features.
@rwjblue rwjblue force-pushed the test-edition-properly branch from 7403b31 to bdc17b0 Compare February 28, 2020 18:33
When there is no wrapping element around the top level outlet, the debug
render tree assertions need to tweaked.
These tests were attempting to modify the
`ENV._TEMPLATE_ONLY_GLIMMER_COMPONENTS` value at runtime, but load
different code when it is and isn't set. So now that the test suite is setting
`template-only-glimmer-components` when the Ember code loads we can no
longer "fake" these tests.

However, the changes to the test runner mean that we still test this
both on and off so we are not loosing coverage.
@rwjblue rwjblue force-pushed the test-edition-properly branch from bdc17b0 to 2f817cc Compare February 28, 2020 18:48
var edition = QUnit.urlParams.edition || 'octane';

if (edition === 'octane') {
EmberENV._TEMPLATE_ONLY_GLIMMER_COMPONENTS = true;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a source of truth for this? not a big deal if not just curious

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rwjblue rwjblue merged commit 830fb0a into master Mar 11, 2020
@rwjblue rwjblue deleted the test-edition-properly branch March 11, 2020 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants