简体   繁体   中英

Running Karma on windows “scripts/test.sh: line 9: testacular: command not found”

I'm trying to do the Angular tutorial on my Windows 7 64-bit PC and I came upon this error when I was trying to run the script to start Karma. Here's test.sh:

#!/bin/bash

BASE_DIR=`dirname $0`

echo ""
echo "Starting Testacular Server (http://vojtajina.github.com/testacular)"
echo "-------------------------------------------------------------------"

testacular start $BASE_DIR/../config/testacular.conf.js $*

I run:

sh scripts/test.sh

The echos show up fine, and then I get the error:

scripts/test.sh: line 9: testacular: command not found

Karma was formerly known as Testacular so modify test.sh to call karma instead of testacular:

testacular start $BASE_DIR/../config/testacular.conf.js $*

change to this:

karma start $BASE_DIR/../config/testacular.conf.js $*

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM