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

Prevent accessing @driver unless set #319

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

tomhicks-bsf
Copy link
Contributor

When there are zero steps in a file (as can happen when excluding
certain tags in a test run) it attempts to close the driver, having
never created it in the first place.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.12%) to 89.24% when pulling b95ed40 on bluespeckfinancial:master into 877107b on mojotech:master.

@driver.close()
@driver.quit()
else
$.defer()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't we return just a resolved promise here instead of a defered object that is in a non resolved state?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably mate yeah. This was just any old crap that worked in five minutes. Just to raise the issue more than anything - was in a rush!

Cheers,Tom

On Mon, Apr 27, 2015 at 10:14 PM, Sam Saccone notifications@github.com
wrote:

@@ -105,7 +105,10 @@ module.exports = ->
argv['prevent-browser-reload']?

terminateDriver = =>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The other way is to check the existence of driver before calling terminate. Probably cleaner.

Cheers,Tom

On Mon, Apr 27, 2015 at 10:14 PM, Sam Saccone notifications@github.com
wrote:

@@ -105,7 +105,10 @@ module.exports = ->
argv['prevent-browser-reload']?

terminateDriver = =>

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah I think this the idea behind this is a good PR. mind just updating a touch and we can get this merged in?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeh man I'll sort it tomorrow. Hate depending on our own forks!

Cheers,Tom

On Mon, Apr 27, 2015 at 10:40 PM, Sam Saccone notifications@github.com
wrote:

@@ -105,7 +105,10 @@ module.exports = ->
argv['prevent-browser-reload']?

terminateDriver = =>

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 no prob thanks for the awesome work ps

When there are zero steps in a file (as can happen when excluding
certain tags in a test run) it attempts to close the driver, having
never created it in the first place.
For some reason, certain commands are not failing
leaving the scenario running for ever, causing our
test runs to hang. The old version of selenium does
seemingly not have this problem.
Multiple tags should be supplied in multiple --tags arguments,
which allows logical ORs and ANDs to be applied to tags. This
creates --tags arguments according to the cucumber docs:

https://github.com/cucumber/cucumber/wiki/Tags

tags: ['@one', '~@two'] will run scenarios with tag @one, but not
scenarios with tag @two.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.08%) to 89.441% when pulling 962cc43 on bluespeckfinancial:master into 5f5dabf on mojotech:master.

Probably gives no benefit
We're moving to node6, and the fixed dependencies might be causing issues
This reverts commit 26eebc6.

Sticking with node 0.12 for now, so put the shrinkwrap back
@coveralls
Copy link

coveralls commented Jul 26, 2016

Coverage Status

Coverage increased (+0.08%) to 89.441% when pulling cf64baf on bluespeckfinancial:master into 5f5dabf on mojotech:master.

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

Successfully merging this pull request may close these issues.

5 participants