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

Document using ng test --browsers ChromeHeadless for remote test running #1392

Open
NicMcPhee opened this issue Dec 24, 2023 · 0 comments
Open
Labels
documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers javascript Pull requests that update Javascript code

Comments

@NicMcPhee
Copy link
Member

NicMcPhee commented Dec 24, 2023

If you want use ssh to connect to a lab machine and run the tests remotely just to make sure a branch works in the lab, you need to run the Angular unit tests (ng test) using a headless browser, i.e., one that won't try to display a window and show you the animation of the tests and their results.

This can be easily accomplished by specifying --browsers ChromeHeadless as an argument to ng test, i.e.,

ng test --browsers ChromeHeadless --no-watch

I added --no-watch above because I'm guessing that will be how it will normally be run, but the --no-watch isn't necessary and that should be made clear somewhere/somehow.

This should be added to the list of ng commands in the README. Addressing this issue is literally just adding a line or two of text (my write-up here is far longer), so it's an easy one for someone to grab.

@NicMcPhee NicMcPhee added documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers javascript Pull requests that update Javascript code labels Dec 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers javascript Pull requests that update Javascript code
Projects
None yet
Development

No branches or pull requests

1 participant