I\'m trying to start using Yeoman (it seems awesome indeed) and having an error trying to run the grunt test
command.
Running \"karma:unit\" (ka
It's fairly clear from the error message that it can't find google-chrome
, which is set as the browser in your Karma config. You either need to change this to another browser or manually set the path to the Chrome binary using the CHROME_BIN
environment variable.
Alternatively, instead of setting the env variable globally, you can set it only for the command you're running:
CHROME_BIN=chromium-browser grunt test
Expanding on the above, for Linux systems, you can point the CHROME_BIN env variable to the chromium binary:
export CHROME_BIN="/usr/bin/chromium-browser"
this worked for me on ubuntu 12.04
echo 'export CHROME_BIN="/usr/bin/chromium-browser"' >> ~/.bashrc && source ~/.bashrc