Overdrivr / micro-ci

Continuous Integration for embedded platforms
0 stars 0 forks source link

Migration of jenkins in unit folder #28

Closed DanFaudemer closed 8 years ago

DanFaudemer commented 8 years ago

After migrating jenkins test in the unit folder I got this issue:

  1) jenkins JobSucess Job succes:
     Uncaught TypeError: Cannot read property 'items' of undefined
      at Jenkins.<anonymous> (node_modules/jenkins/lib/middleware.js:25:35)
      at next (node_modules/jenkins/node_modules/papi/lib/client.js:298:10)
      at Jenkins._onResponse (node_modules/jenkins/lib/jenkins.js:109:3)
      at next (node_modules/jenkins/node_modules/papi/lib/client.js:298:10)
      at IncomingMessage.<anonymous> (node_modules/jenkins/node_modules/papi/lib/client.js:598:7)
      at _stream_readable.js:920:16

Any idea?

Overdrivr commented 8 years ago

I'm not sure, however looking at the code the jenkins.js file requires jenkins module. Are you sure this is not causing name collision ?

Also, this test is more an end to end (e2e) test than unit right ? I have created in another branch a folder e2e to host this kind of tests

DanFaudemer commented 8 years ago

Ok I have no idea on how to solve the issue. I can reproduce it on the jenkins library I opened a ticket.

See: https://github.com/silas/node-jenkins/issues/26

DanFaudemer commented 8 years ago

Ok Silas help me to solve the issue, fixture files need to be in test folder and not test/unit