I've been trying to get JsTestDriver going but have been unable to run
my tests.
I am running Windows Vista, and java.exe is on the path (as I can run
it from anywhere).
Both the jsTestDriver.conf and JsTestDriver-1.2.2.jar are located at a
path with no spaces, hereafter referred to as installPath.
To execute the program I have opened up the windows command line (cmd)
and changed directory to installPath.
I have been able to start the server and capture browsers without any
problems using the command
installPath>java -jar jsTestDriver-1.2.2.jar --port 9876 --browser
"pathToFirefox"
However when I then do the following:
installPath>java -jar jsTestDriver-1.2.2.jar --tests all
I get an exception "No server defined!".
I tried manually setting the config path by adding --config
"installPath\jsTestDriver.conf" but this did not change anything.
I also tried jsTestDriver-1.2.1.jar, but this did not change anything.
The contents of jsTestDriver.conf are:
server:
http://localhost:9876
load:
- testing/*.js
The full exception is here:
c:\inetpub\wwwroot\WebSite3\Tests>java -jar JsTestDriver-1.2.2.jar --
config "C:\inetpub\wwwroot\WebSite3\Tests\jsTestDriver.conf" --tests
all
java.lang.RuntimeException: Oh Snap! No server defined!
at
com.google.jstestdriver.config.ResolvedConfiguration.createServerAddress(ResolvedConfiguration.java:
55)
at
com.google.jstestdriver.config.Initializer.initialize(Initializer.java:
76)
at com.google.jstestdriver.JsTestDriver.main(JsTestDriver.java:
79)
Unexpected Runner Condition: Oh Snap! No server defined!
Unfortunately I don't have a java development environment so I can't
debug this manually, however I did take a look at the source and that
exception implied the port was wrong which didn't really make sense to
me.
I can only assume I've missed something simple somewhere...
Your help is most appreciated
Thanks