So I'm trying to run a test on my framework on Windows 10 after a git clone but I keep getting these issues.
Here's what I tried and the results:
1."bin/behat" in terminal - 'bin' is not recognized as an internal or external command,operable program or batch file.
2. "bin\behat" in terminal - 'bin\behat' is not recognized as an internal or external command,operable program or batch file.
3. "php bin/behat" or "php bin\behat" in terminal -
**dir=$(d=${0%[/\\]*}; cd "$d"; cd "../vendor/behat/behat/bin" && pwd)
# See if we are running in Cygwin by checking for cygpath program
if command -v 'cygpath' >/dev/null 2>&1; then
# Cygwin paths start with /cygdrive/ which will break windows PHP,
# so we need to translate the dir path to windows format. However
# we could be using cygwin PHP which does not require this, so we
# test if the path to PHP starts with /cygdrive/ rather than /usr/bin
if [[ $(which php) == /cygdrive/* ]]; then
dir=$(cygpath -m $dir);
fi
fi
dir=$(echo $dir | sed 's/ /\ /g')
"${dir}/behat" "$@"**