这是busterjs单元测试框架中的错误吗?

时间:2013-04-06 15:12:44

标签: bash node.js unit-testing buster.js

我在busterjs中运行我的测试并且其中一个中有错误 - 但我仍然得到0返回代码。这导致我的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

0 个答案:

没有答案