improving the windows bat scripts
parent
393d5e9bc5
commit
187f555683
@ -1,13 +1,19 @@
|
||||
set base_dir=%~p0
|
||||
set port=9876
|
||||
@echo off
|
||||
|
||||
REM Windows script for starting JSTD server
|
||||
REM
|
||||
REM Requirements:
|
||||
REM - Java (http://www.java.com)
|
||||
|
||||
set BASE_DIR=%~dp0
|
||||
set PORT=9876
|
||||
|
||||
echo "Starting JsTestDriver Server (http://code.google.com/p/js-test-driver/)"
|
||||
echo "Please open the following url and capture one or more browsers:"
|
||||
echo "http://localhost:%port%"
|
||||
|
||||
java -jar "%base_dir%/../test/lib/jstestdriver/JsTestDriver.jar" ^
|
||||
--port %port% ^
|
||||
--browserTimeout 20000 ^
|
||||
--config "%base_dir%/../config/jsTestDriver.conf" ^
|
||||
--basePath "%base_dir%/.."
|
||||
echo "http://localhost:%PORT%"
|
||||
|
||||
java -jar "%BASE_DIR%/../test/lib/jstestdriver/JsTestDriver.jar" ^
|
||||
--PORT %PORT% ^
|
||||
--browserTimeout 20000 ^
|
||||
--config "%BASE_DIR%/../config/jsTestDriver.conf" ^
|
||||
--basePath "%BASE_DIR%/.."
|
||||
|
@ -1,10 +1,14 @@
|
||||
set base_dir=%~p0
|
||||
@echo off
|
||||
|
||||
set tests=%1
|
||||
if "%tests%" == "" set tests="all"
|
||||
REM Windows script for running unit tests
|
||||
REM You have to run server and capture some browser first
|
||||
REM
|
||||
REM Requirements:
|
||||
REM - Java (http://www.java.com)
|
||||
|
||||
java -jar "%base_dir%/../test/lib/jstestdriver/JsTestDriver.jar" ^
|
||||
--config "%base_dir%/../config/jsTestDriver.conf" ^
|
||||
--basePath "%base_dir%/.." ^
|
||||
--tests "%tests%"
|
||||
set BASE_DIR=%~dp0
|
||||
|
||||
java -jar "%BASE_DIR%/../test/lib/jstestdriver/JsTestDriver.jar" ^
|
||||
--config "%BASE_DIR%/../config/jsTestDriver.conf" ^
|
||||
--basePath "%BASE_DIR%/.." ^
|
||||
--tests all
|
||||
|
Reference in New Issue