0

busterjs でテストを実行していますが、そのうちの 1 つにエラーがありますが、まだ 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
4

0 に答える 0