提交 24617b3b 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

more test

上级 83d69887
......@@ -5,51 +5,53 @@ function dockerRun() {
docker run -v "$(pwd)":/bot ${IMAGE_NAME:-'wechaty:test'} $@
}
fixture=test/fixture/docker
@test "javascript bot" {
cd docker-bot
cd "$fixture"
run dockerRun js-bot.js
[ "$status" -eq 0 ]
}
@test "javascript syntax error" {
cd docker-bot
cd "$fixture"
run dockerRun syntax-error.js
[ "$status" -ne 0 ]
}
@test "typescript bot" {
cd docker-bot
cd "$fixture"
run dockerRun ts-bot.ts
[ "$status" -eq 0 ]
}
@test "typescript type error" {
cd docker-bot
cd "$fixture"
run dockerRun type-error.ts
[ "$status" -ne 0 ]
}
@test "javascript bot with require" {
cd docker-bot/with-package-json/
cd "$fixture/with-package-json/"
run dockerRun with-require.js
[ "$status" -eq 0 ]
}
@test "javascript bot require error" {
cd docker-bot/with-package-json/
cd "$fixture/with-package-json/"
run dockerRun with-require-error.js
[ "$status" -ne 0 ]
}
@test "typescript bot with import" {
cd docker-bot/with-package-json/
cd "$fixture/with-package-json/"
run dockerRun with-import.ts
[ "$status" -eq 0 ]
}
@test "typescript bot with import error" {
cd docker-bot/with-package-json/
cd "$fixture/with-package-json/"
run dockerRun with-import-error.ts
[ "$status" -ne 0 ]
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册