Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d4ac5a8
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.
@mr. Denford. This tutorial does not seem to run on my Windows 7 machine. It runs on my Mac. When I try to run the "npm test", my installation of WebStorm loads this: #!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,,/,g')")
case
uname
inCYGWIN) basedir=
cygpath -w "$basedir"
;;esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/../cucumber/bin/cucumber.js" "$@"
ret=$?
else
node "$basedir/../cucumber/bin/cucumber.js" "$@"
ret=$?
fi
exit $ret
It does not like this at all. About fifteen errors. Looks like it does not path names and quotes, etc. Like it won't run under window. What am I missing?
d4ac5a8
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.
Careful with those @ signs.
d4ac5a8
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.
@jharter I've never run it on windows, and I don't actually have a windows environment to test it on. Having said that, I haven't updated this for a while and I wouldn't be surprised if there were issues due to updates in cucumberjs etc since I wrote it. I should go through and check it all works still. Having said that, I'd still struggle to test it out on Windows.
d4ac5a8
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.
@jharter perhaps it's related to, or similar to, this: cucumber/cucumber-js#60 - as @jbpros wrote there:
you'll see from the
package.json
thatnpm test
runscucumber.js
which perhaps doesn't work on Windowsd4ac5a8
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.
d4ac5a8
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.
d4ac5a8
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.
@jbpros - Thought I should update these comments with jbpro's insight. Windows needs to run cucumber-js and not cucumber.js. Like he said, update the package.json file and the tutorial runs fine. I believe you do have to run this in a Bash session and not a Windows Console session. Thanks for everyone's help. There were three excellent responses to my question from this community in one day. Is that cool! Thanks.