forked from csainty/node-raven
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated test script to support running against multiple instances. Yo…
…u just create new RavenDb_{Name} folders and it will run the tests against every instance. This is used to test against multiple versions or configurations.
- Loading branch information
Chris Sainty
committed
Dec 15, 2011
1 parent
18c43f0
commit c5014d5
Showing
2 changed files
with
19 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
@echo off | ||
del /q /s .\Ravendb\data > NUL | ||
del /q /s .\Ravendb\logs > NUL | ||
start "node-raven-test-server" /MIN .\RavenDb\Raven.Server | ||
node .\test\waitforserver.js | ||
|
||
echo --- | ||
echo Test results | ||
echo --- | ||
cmd /C .\node_modules\.bin\mocha .\test\ravenhttpclient.test.js .\test\HiLoKeyGenerator.test.js .\test\client.test.js | ||
taskkill /F /FI "WINDOWTITLE eq node-raven-test-server" > NUL | ||
FOR /D %%f IN (RavenDb*) DO CALL :test %%f | ||
|
||
echo --- | ||
echo JShint results | ||
echo --- | ||
echo.---JShint results--- | ||
cmd /C .\node_modules\.bin\jshint .\lib\client.js .\lib\ravenhttpclient.js .\lib\HiLoKeyGenerator.js | ||
|
||
GOTO :EOF | ||
|
||
:test | ||
@ECHO.Testing %1 | ||
del /q /s .\%1\data > NUL | ||
del /q /s .\%1\logs > NUL | ||
start "node-raven-test-server" /MIN .\%1\Raven.Server | ||
node .\test\waitforserver.js | ||
|
||
echo.---Test results for %1--- | ||
cmd /C .\node_modules\.bin\mocha .\test\ravenhttpclient.test.js .\test\HiLoKeyGenerator.test.js .\test\client.test.js | ||
taskkill /F /FI "WINDOWTITLE eq node-raven-test-server" > NUL |