grunt-browserstack icon indicating copy to clipboard operation
grunt-browserstack copied to clipboard

Automated Tests

Open webnard opened this issue 11 years ago • 3 comments

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.

webnard avatar Mar 22 '13 15:03 webnard

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.

pghalliday avatar Mar 22 '13 16:03 pghalliday

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.

webnard avatar Mar 27 '13 18:03 webnard

:+1:

jrcryer avatar Dec 30 '14 22:12 jrcryer