API 测试框架

This commit is contained in:
jysperm
2014-04-13 16:08:41 +08:00
parent 484e340da3
commit 78c0a2d4d8
7 changed files with 79 additions and 3 deletions

8
run-test.bash Normal file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
node node_modules/coffee-script/bin/coffee app.coffee &
SERVER_PID="$!"
sleep 1s
node node_modules/coffee-script/bin/coffee TEST/API/init.coffee
node node_modules/jasmine-node/bin/jasmine-node --junitreport TEST/API
kill "$SERVER_PID"