Bash 这是busterjs单元测试框架中的一个bug吗?

Bash 这是busterjs单元测试框架中的一个bug吗?,bash,node.js,unit-testing,buster.js,Bash,Node.js,Unit Testing,Buster.js,我正在busterjs中运行我的测试,其中一个测试中有一个错误,但我仍然得到一个0返回码。这将导致我的CI服务器在生成状态应为“红色”时显示为“绿色” buster是否应具有非零退出代码buster自身退出成功;它运行了您提供的测试并报告了发现的故障。@chepner,是的,通常测试框架的预期行为是在任何测试条件失败时退出非零“预期行为是缺少配置以及失败的测试返回非零退出代码。”我将buster与grunt buster一起使用,如果测试失败,它会让CI失败。所有的任务只是检查退出代码()。那么

我正在busterjs中运行我的测试,其中一个测试中有一个错误,但我仍然得到一个0返回码。这将导致我的CI服务器在生成状态应为“红色”时显示为“绿色”


buster
是否应具有非零退出代码
buster
自身退出成功;它运行了您提供的测试并报告了发现的故障。@chepner,是的,通常测试框架的预期行为是在任何测试条件失败时退出非零“预期行为是缺少配置以及失败的测试返回非零退出代码。”我将buster与grunt buster一起使用,如果测试失败,它会让CI失败。所有的任务只是检查退出代码()。那么你确定零出口密码吗?
iMac:tests caseyflynn$ buster test
API GET /users: ..
Module components/apiAuth: .........
Module components/controllers: ....
Module components/routeParrot: ..F.

Deferred: API GET /users GET /api/users "client_super_admin" returns all users for given client
Deferred: API GET /users GET /api/users "super_admin" returns all users
Deferred: API GET /users GET /api/users "client_admin" returns all users for given client
Deferred: API GET /users GET /api/users "client_delegate" returns all users for given client
Deferred: API GET /users GET /api/users "client_auditor" returns all users for given client

Failure: Module components/routeParrot Modifies socket.io request to API
    [assert.calledWith] Expected function spy() {} to be called with arguments { headers: [], method: "get", url: "/api/users" }, { jsonAPIRespond: function () {} }
    spy({
  data: { headers: [], method: "get", url: "/users" },
  headers: [],
  method: "get",
  requestType: "socketio",
  url: "/api/users"
}, { jsonAPIRespond: function () {} })
    at Object.buster.testCase.Modifies socket.io request to API (./componentsTests/routeParrotTest.js:70:21)

4 test cases, 19 tests, 44 assertions, 1 failure, 0 errors, 0 timeouts, 5 deferred
Finished in 0.044s
iMac:tests caseyflynn$ echo $?
0