-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
"cypress run" command hangs indefinitely when unit testing Aurelia components #3082
Comments
My tests actually did eventually finish and exit, but it look an unreasonable amount of time. Truncated version of logs found when running This looks a bit weird, concerning a video capture stderr:
Also these webpack errors, which I suspect to be the core problem:
Messages:
|
Your response was insanely quick! Thank you for your quick reply! I'm not convinced the Webpack warnings would be the cause unless |
@chrisbreiding I've been doing some work and stumbled upon the fact that "cypress open" will not work if I have the following in my cypress.json. {
"watchForFileChanges": false
} As an FYI, I discovered this when trying to use the following module with Cypress: (Because it writes out a file, Cypresses watcher picks up the changes and gets caught in an infinite loop!) EDIT: The build times are just longer in this mode for reasons I'm not sure about yet. |
@jennifer-shehane In regards to this issue, am I able to get an ETA on when you guys will be able to look into it? I understand that you all most likely have higher priorities but I just need to get a rough idea on when this would be looked into. (ie. in a month? 3 months? 6 months? 1 year?) Just so I know when I can set aside resources to bring the fixes upstream into my projects :) P.S. Thanks again for your support :) |
I tracked this down to a bug in It's been fixed in @cypress/webpack-preprocessor v4.0.3, so your tests should run properly if you update it. By the way, when I did get them to run, I noticed one test failing in Electron (which is the browser used in |
Thank you and thanks also for the heads up on the failing test! |
Current behavior:
When I test my Aurelia components in Cypress, my unit testing library code executes fine if I run it manually via
cypress open
. However if I usecypress run
, none of the tests within the files are found. It's as if it's hit some kind of error and just hangs until it times out. It finds the actual *.test.ts files, it just can't see any tests within them.I think... it's hitting the "taskTimeout" or something?
Desired behavior:
I expect
cypress run
to work exactly likecypress open
but be non-interactive or at the very least for Cypress to inform me of what error is occurring (if one is).Steps to reproduce: (app code and test code)
npm install
cypress open
and click "Run all specs". All the tests should get a tick and pass.cypress run
. You'll notice it just hangs for a long while and eventually nothing happens. If you investigate and look at the *.mp4 files, you'll most likely see nothing happen in about 5-10 seconds. There was 1 rare instance where it showed the error message "No test cases found" or similar.You can see the
cypress run
step in Travis here. The tests say they're passing... but it's seemingly not actually executing them.Versions
The text was updated successfully, but these errors were encountered: