mantoni / mochify.js

☕️ TDD with Browserify, Mocha, Headless Chrome and WebDriver
MIT License
346 stars 57 forks source link

Way to leave browser open at end of tests? #77

Open dmwyatt opened 9 years ago

dmwyatt commented 9 years ago

I've got a few tests that are causing chrome to just return a 500 Internal Server Error but work fine in Firefox. It would be extremely helpful to be able to leave browser open at end of tests so I can inspect in the browser what is going wrong.

mantoni commented 9 years ago

Yes, I would like to support that :+1:

The way I would prefer it work is a new option in the min-webdriver API, maybe closeOnFailure: true. The default should be true because most people use remote machines with Selenium Grid and would have to log into them to close any "leaking" browser sessions manually.

The new option could then be exposed in the Mochify API and as a command line option.

Would you have some free cycles to look into this?

dmwyatt commented 9 years ago

Sure, I'll look at it today. I'll take any further discussion to an issue or pull request on min-webdriver

mantoni commented 9 years ago

Now that this is supported by min-webdriver, there could be an API enhanceent and a command line option in Mochify that sets both values to false. This would allow users to quickly run a debugging session without the need the change the configs. What do you think @dmwyatt?

dmwyatt commented 9 years ago

This makes a lot of sense to me.

On Wed, Mar 25, 2015 at 2:45 AM Maximilian Antoni notifications@github.com wrote:

Now that this is supported by min-webdriver, there could be an API enhanceent and a command line option in Mochify that sets both values to false. This would allow users to quickly run a debugging session without the need the change the configs. What do you think @dmwyatt https://github.com/dmwyatt?

— Reply to this email directly or view it on GitHub https://github.com/mantoni/mochify.js/issues/77#issuecomment-85902982.