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

Automated Tests #3

Open
webnard opened this issue Mar 22, 2013 · 3 comments
Open

Automated Tests #3

webnard opened this issue Mar 22, 2013 · 3 comments

Comments

@webnard
Copy link

webnard commented Mar 22, 2013

Starts the requested workers with BrowserStack. Optionally starts a BrowserStack tunnel to expose a local server to the workers.
This task does not exit untli the user presses a key at which time the workers are stopped again.

Is there any way to get around the need for a keypress to stop the workers? It would be nice to be able to automatically load up the browsers through a tunnel, run a few tests, and upon their completion kill the workers.

@pghalliday
Copy link
Owner

Hmm, this was a little tricky to do due to the way grunt works. Ie. its difficult to chain tasks so that 1 starts, another runs and completes and then the first cleans up. I may look into this again though.

The other problem is that it can take a while to start the browserstack clients so in development I wanted the clients to start once at the beginning of my session and then I would stop them later when I don't need them anymore. I can see that for an integration server though this might not be ideal.

@webnard
Copy link
Author

webnard commented Mar 27, 2013

I've got a working solution in bash that basically runs the tunnel in the background and kills it based on its process ID when my tests are finished. I haven't done much with Grunt, but if I have time I'll try to see if I can do something similar with it and submit a pull request if I get anything viable.

@jrcryer
Copy link

jrcryer commented Dec 30, 2014

👍

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