Skip to content
Create a gist now

Instantly share code, notes, and snippets.

azu さんのespowerun.jsをキックするwindows用シェルスクリプト c.f.
@echo off
if "%1"=="" (
echo "Usage: ./espowerun.cmd path/to/test.js"
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
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.