Skip to content

Commit 393d5e9

Browse files
ifedotovIgorMinar
authored andcommitted
Added windows .bat equivalents to .sh scripts for running tests
1 parent b5d47bc commit 393d5e9

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

scripts/test-server.bat

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
set base_dir=%~p0
2+
set port=9876
3+
4+
echo "Starting JsTestDriver Server (http://code.google.com/p/js-test-driver/)"
5+
echo "Please open the following url and capture one or more browsers:"
6+
echo "http://localhost:%port%"
7+
8+
java -jar "%base_dir%/../test/lib/jstestdriver/JsTestDriver.jar" ^
9+
--port %port% ^
10+
--browserTimeout 20000 ^
11+
--config "%base_dir%/../config/jsTestDriver.conf" ^
12+
--basePath "%base_dir%/.."
13+

scripts/test.bat

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
set base_dir=%~p0
2+
3+
set tests=%1
4+
if "%tests%" == "" set tests="all"
5+
6+
java -jar "%base_dir%/../test/lib/jstestdriver/JsTestDriver.jar" ^
7+
--config "%base_dir%/../config/jsTestDriver.conf" ^
8+
--basePath "%base_dir%/.." ^
9+
--tests "%tests%"
10+

0 commit comments

Comments
 (0)