-
Notifications
You must be signed in to change notification settings - Fork 607
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
Fix test command when using docker #831
Conversation
Was running reference instead of test when passing --docker flag
Any chance you can merge this one in @garris? It's been sitting around for almost a week now. |
@BBlackwo I'm having some trouble running with docker. if (config.args.docker) {
const passAlongArgs = process.argv
.slice(3)
.join('" "') // in case of spaces in a command
.replace(/--docker/, '--moby'); And in my case, i don't want to use What do you think? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the PR — this is a nice refactor. My only comment is around the contributing doc — there are some notes in the readme for contributing— maybe we can just tell the user to go here...
https://github.com/garris/BackstopJS/blob/master/README.md#developing-bug-fixing-contributing
I am planning to release the next version on the 24th. This change will be in for that one.
Cheers.
@BBlackwo Just occurred to me -- you're adding quotes to docker args in this PR... What happens if the user included these quotes in the original argument? 👉 e.g. |
@brendonbarreto being able to set it on the config file sounds reasonable. Maybe you can submit a PR for that :) @garris thanks for the merge. Sorry I didn't see that section in the readme. Also with the quotes, before my change if you ran --filter="My Scenario Name" the quotes would be stripped off when running the docker command. My change always puts them in case of spaces. The |
Added it also to the table of contents in #838 |
backstop test --docker
was actually runningreference
instead. Fixed that and did a bit of refactoring so there's less copied and pasted code.backstop test --docker --filter="some test"
.--docker
will work on window as I'm using${process.cwd()}
instead of$(pwd)
in the docker command.CONTRIBUTING.md
guide. It's a start. I couldn't figure out what commands to run and such to test my changes. Had to dig through thepackage.json > scripts
. I think it could help others too.