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

Fix Ember Inspector during tests for Ember >= 3 #855

Merged
merged 1 commit into from
Aug 3, 2018

Conversation

teddyzeenny
Copy link
Contributor

@teddyzeenny teddyzeenny commented Aug 3, 2018

The primary difference between acceptance tests for Ember < 3 vs Ember >= 3 is that for Ember < 3, every test created a new application + one application instance, whereas in Ember > 3 all the tests use the same application, but a different application instance for each test. The inspector was relying on the application boot, (which only happens once during tests in Ember >=3, and it happens even before the first test starts which was causing the inspector to fail and throw errors as it was starting even before the first application instance was created).

On the plus side, making the inspector only boot on application instance boot (instead of on application boot) also works for prior versions, and feels more "correct", so this should resolve everything everywhere.

Resolves #816
Resolves #818
Closes #846

Copy link
Member

@RobbieTheWagner RobbieTheWagner left a comment

Choose a reason for hiding this comment

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

Looks good to me! Thanks for spending the time to figure this out. It was really stumping me!

@teddyzeenny teddyzeenny merged commit fddb63a into emberjs:master Aug 3, 2018
@teddyzeenny teddyzeenny deleted the fix-tests branch August 3, 2018 17:07
@dandehavilland
Copy link

Any chance of a patch-level release to get this in?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failing in Ember 3.1 Seeing failing tests on /tests route with Ember Inspector open
4 participants