Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
cleanup and addition of test command
  • Loading branch information
einaros committed Jan 2, 2012
1 parent 9df996d commit 2fcb0b0
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
25 changes: 20 additions & 5 deletions make.bat
@@ -1,5 +1,20 @@
REM This file hijacks the make command from package.json, so that
REM the solution can be 'built' on Windows.
mkdir build\Release
xcopy /Y lib\ValidationWindows.js build\Release\validation.js
xcopy /Y lib\BufferUtilWindows.js build\Release\bufferutil.js
@echo off

REM This file hijacks the make command from package.json, so that
REM the solution can be 'built' on Windows.

IF "%1"=="" GOTO Build
IF "%1"=="test" goto Test
GOTO End

:Build
mkdir build\Release
copy /Y lib\ValidationWindows.js build\Release\validation.js
copy /Y lib\BufferUtilWindows.js build\Release\bufferutil.js
GOTO End

:Test
node node_modules/mocha/bin/_mocha -t 2000 test/BufferPool.test.js test/Sender.test.js test/WebSocketServer.test.js test/Receiver.test.js test/Validation.test.js test/WebSocket.test.js

:End

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -11,7 +11,7 @@
"wscat": "./bin/wscat"
},
"scripts": {
"test": "./node_modules/.bin/mocha -t 2000 test/*.test.*",
"test": "make test",
"preinstall": "make"
},
"engines": {
Expand Down

0 comments on commit 2fcb0b0

Please sign in to comment.