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

Jasmine:requirejs test is hanging #133

Open
ossdev07 opened this issue May 21, 2019 · 3 comments
Open

Jasmine:requirejs test is hanging #133

ossdev07 opened this issue May 21, 2019 · 3 comments

Comments

@ossdev07
Copy link

Hello Team,

The grunt-contrib-jasmine and grunt-contrib-qunit used as a development dependency of the package are currently supporting phantomjs as a browser testing environment and phantomjs is an unmaintained project so it will be good to replace it with some maintained alternatives like chrome headless.

Updating the grunt-contrib-qunit and grunt-contrib-jasmine version to latest will provide support for chrome headless for the package and it is good to use the updated dependencies in the package.

I was checking the package on my local environment with these changes, facing an issue in running jasmine: requirejs test case as it is not proceeding further with chrome headless.
To test all the test cases with chromeHeadless browser I have commented the (jasmine:requirejs) test case, as a result, I could see all the other jasmine test case are passing successfully.

In my view, the issue is with jasmine:requirejs test case only I will be glad if you could share any input regarding this.

@pimterry
Copy link
Owner

Hmm, not sure really! I would be interested in moving to Chrome headless, you're totally right, that'd be a valuable update over phantomjs.

Do the requirejs tests all pass locally for you before your changes? If you run it in Chrome non-headless, are there any interesting errors there?

I'm happy to try and give you some debugging pointers, but I'm afraid I don't have time to implement this myself any time soon. I'd definitely be interested in taking a look at a PR if you do get it working though 👍

@ossdev07
Copy link
Author

@pimterry Thanks for the quick reply

The requirejs tests are all failing on my local system as well, but I am checking it with headless chrome only because the grunt-contrib-qunit and grunt-contrib-jasmine directly provide support for headless chrome with there latest versions.

It will be great if you could provide any debugging pointers, I will work through it.

Please have a look at some of my queries:
-> How does SpecRunner.html file gets created and used?
-> The only difference I could find between chrome and phantomjs is that at runtime with phantomjs inside grunt module the requirejs and jasmine-helper.js files are being created but for chrome, they are not present ( requirejs file is also being created with chrome but not at the similar location as of phantomjs)

I appreciate your help and time for this!

@Mr0grog
Copy link
Contributor

Mr0grog commented Jan 26, 2024

@ossdev07 I don’t know if this is still an issue for you, but it should have been fixed by some of the cleanup/modernization work I did in #190, #192, #194, and #195.

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

No branches or pull requests

3 participants