Created
October 21, 2012 05:54
-
-
Save starkhorn/3926075 to your computer and use it in GitHub Desktop.
Batch script used to execute test cases with Mocha framework
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
@echo off | |
set testFiles= | |
set command='dir /b /s test\*Test.coffee' | |
for /f "delims=" %%f in (%command%) do ( | |
call :concatFiles %%f | |
) | |
goto :callMocha | |
:concatFiles | |
set testFiles=%testFiles% %1 | |
goto :end | |
:callMocha | |
node node_modules\mocha\bin\mocha %testFiles% | |
:end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment