Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

improving the windows bat scripts

  • Loading branch information...
commit 187f55568376381df1578620cac73c85e26cd269 1 parent 393d5e9
@IgorMinar IgorMinar authored
Showing with 26 additions and 16 deletions.
  1. +15 −9 scripts/test-server.bat
  2. +11 −7 scripts/test.bat
View
24 scripts/test-server.bat
@@ -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%/.."
View
18 scripts/test.bat
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.