Skip to content

Instantly share code, notes, and snippets.

@starkhorn
Created October 21, 2012 05:54
Show Gist options
  • Save starkhorn/3926075 to your computer and use it in GitHub Desktop.
Save starkhorn/3926075 to your computer and use it in GitHub Desktop.
Batch script used to execute test cases with Mocha framework
@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