question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`ember test --server` stops building and refreshing the browser after a while

See original GitHub issue

Intro

We have been noticing the same behavior across all our apps at work and I was able to reproduce on a brand new app

The issue

After an amount of time that “seems” to be hovering around 20-30 minutes ember test --server stops sending the “start test” message over the websocket when files are changed. Even opening a new tab or a new window in a different browser does not fix the issue. All connected clients will not be notified when the code is changed.

Furthermore (although I have less proof of this) even though ember test --server seems to recompile when code is changed it looks like the assets being server are not different and changes don’t make their way into the compiled assets

The only fix is to restart ember test --server

reproduction

ember new test-app
cd test-app
yarn
ember test --server
# open browser and visit test page, 
# make a change to app/app.js
# see page reload
# wait 20 min or so
# make a change to app/app.js
# page won't reload
# change is not reflected in new source code

thanks for listening, happy to provide any more context or take suggestions on how to move this forward!


Output from ember version --verbose && npm --version && yarn --version:

➜ ember --version
ember-cli: 3.21.0
node: 10.22.0
os: linux x64

➜ npm --version
6.14.6

➜ yarn --version
1.22.5

note that I was able to reproduce this on node 12 as well

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:3
  • Comments:14 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
mwagzcommented, Oct 27, 2021

I notice this most often when I try to filter or apply a specific test module. I can’t recall seeing it any other way.

1reaction
MrChocolatinecommented, Jun 15, 2021

I have noticed this behaviour for years, perhaps since Ember.js v3.8. /following_thread

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ember tests running really slowly for anyone else after ...
I am upgrading an Ember addon we have written to 3.28.1 and after a fair ... `ember test --server` stops building and refreshing...
Read more >
Ember CLI / browser refresh / production / 404 - Stack Overflow
I built the app with this command: ember build --environment production , and then I made a WAR out of the files produced...
Read more >
Testing Python in Visual Studio Code
Open the Test Explorer view. Similar to Testing: Focus on Python View on versions prior to 2021.9. Test: Stop Refreshing Tests, Cancel test...
Read more >
What went wrong? Troubleshooting JavaScript - MDN Web Docs
Fixing syntax errors · Go to the tab that you've got number-game-errors. · This is a pretty easy error to track down, and...
Read more >
Offline Data and Sync with Ember-Orbit - CodingItWrong.com
Right now our app requires us to be online; if the API server isn't reachable, the app won't even launch. To confirm this,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found