Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
azu さんのespowerun.jsをキックするwindows用シェルスクリプト c.f. https://gist.github.com/azu/6309397
@echo off
if "%1"=="" (
echo "Usage: ./espowerun.cmd path/to/test.js"
exit
)
set tmpname=
set tmpdir=
FOR /L %%i IN (0 1 100) DO (
if not exist tmp%%i (
set tmpname=%%i
set tmpdir=tmp%%i
goto found
)
)
:found
mkdir %tmpdir%
node %~dp0\espowerun.js "%1" > %tmpdir%\%tmpname%.js
node /path/to/mocha/bin/mocha %tmpdir%
del /F /Q %tmpdir%
rmdir %tmpdir%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.