You need a installed JDK or JRE 6. It might also work with JDK/JRE 5 but I have developed on JDK 6. You need a JsChilicat distribution which can be found in the download section of the github project. https://github.com/chilicat/JsChilicat
Or you have to build JsChilicat form the sources. To checkout the code please see github details.
Download the distribution. Open a terminal or a console and go into the libs directory. In the libs directory you will find a jschilicat.jar. By issuing
java -jar jschilicat.jar
you will get a list of all available command parameters.
Start tests in Firefox:
java -jar jschilicat.jar -firefox
Start tests in Google Chrome:
java -jar jschilicat.jar -chrome
Start test in htmlunit:
java -jar jschilicat.jar -htmlunit
Start test in JsChilicat internal:
java -jar jschilicat.jar -chilicat
If you have selected your browser than you must set you working directory. The working director will contain the test result and coverage files. By default is the current directory the working directory
java -jar jschilicat.jar -<browser> -workingDir /dev/results
Now we want to specify the our test sets. JsChilicat will differ between three sources: libraries, sources and tests.
The order of loading the liberties is always:
libraries -> sources -> tests
Lets issue a hypothetical test run:
java -jar jschilicat.jar -<browser> -workingDir /Users/jschilicat/dev/results \ -libs /dev/libs -src /dev/src -src-test /dev/test/
Note: The separator is platform depended. Windows uses semi-colon (;) and mac uses colon (:)
The file in a .jsl must be relative to the parent of the .jsl file.
The MIT License (MIT)
Copyright (c) 2013 chilicat
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.