0

我正在阅读 AngularJS 教程,我被困在运行 Testacular 测试的教程上。我收到以下错误:

Starting Testacular Server (http://vojtajina.github.com/testacular)
-------------------------------------------------------------------
info: Testacular server started at http://localhost:9876/
info (launcher): Starting browser Chrome
error (launcher): Cannot start Chrome
    execvp(): No such file or directory

info (launcher): Trying to start Chrome again.
error (launcher): Cannot start Chrome
    execvp(): No such file or directory

info (launcher): Trying to start Chrome again.
error (launcher): Cannot start Chrome
    execvp(): No such file or directory

当我搜索问题时,有类似的用户遇到此问题,但他们使用的是 Windows。我正在使用 Linux Mint。

4

1 回答 1

4

It is just a small problem in config files' list of browsers. You should change the name of the browser in the configuration files under config/ directory: config/testacular.conf.js and testacular-e2e.conf.js. If you are using chromium browser set the list of browsers to 'chromium-browse', instead of 'Chrome' like this.:

browsers = ['chromium-browser'];

Here is an ss of my testacular.conf.js file: an ss of my testacular.conf.js.

If you would like to include more than one browser for you tests you can add the name of the other browsers installed in your system:

browsers = ['chromium-browser', 'firefox'];

If you are not sure about the name of your chrome browser this should help in the terminal:

ls /usr/bin/ | grep -i chrom
于 2013-02-17T08:54:11.717 回答