Code Monkey home page Code Monkey logo

api-node's People

Contributors

bradleyboutcher avatar dividedmind avatar hleb-rubanau avatar izgeri avatar jakequilty avatar jjmason avatar kgilpin avatar ryanprior avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

api-node's Issues

Add code coverage to api-node build pipeline

Add code coverage to this project.

Acceptance Criteria:

  • Code coverage should be measured across all tests defined in this repository every time a build is run in any branch.
  • Coverage report should include:
    • Line Coverage (including highlighting which lines are covered and which are not - not just giving a percentage)
    • Conditional Coverage
    • Optionally, other kinds of coverage such as Package, Class, File, or Method coverage
  • Coverage report should be created in or converted to Cobertura format as part of build to allow for ingestion into coverage aggregation tools
  • Coverage report should be archived in the Jenkins build using the cobertura command as shown at https://github.com/cyberark/conjur-api-ruby/blob/072d21e01e46382ee4d577e180c1269f8ff9f36e/Jenkinsfile#L27
  • Coverage report should be uploaded to Code Climate with each build

Running the tests with `gulp` throws an error

To reproduce:

  1. Clone the repo
  2. npm install inside the directory.
  3. Run gulp, per the instructions in the README.

What happens?

The following error occurs:

~/Downloads/api-node (master) $ gulp
[10:24:25] Using gulpfile ~/Downloads/api-node/gulpfile.js
[10:24:25] Starting 'lint'...
[10:24:25] Starting 'test'...
[10:24:25] 'test' errored after 92 ms
[10:24:25] TypeError in plugin 'gulp-mocha'
Message:
    process.EventEmitter is not a constructor
Stack:
TypeError: process.EventEmitter is not a constructor
    at Object.<anonymous> (/Users/jgoldstein/Downloads/api-node/node_modules/restler/lib/restler.js:91:21)
    at Module._compile (module.js:641:30)
    at Object.Module._extensions..js (module.js:652:10)
    at Module.load (/Users/jgoldstein/Downloads/api-node/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
    at tryModuleLoad (module.js:503:12)
    at Function.Module._load (module.js:495:3)
    at Module.require (module.js:585:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/jgoldstein/Downloads/api-node/lib/global.js:29:11)
    at Module._compile (module.js:641:30)
    at Object.Module._extensions..js (module.js:652:10)
    at Module.load (/Users/jgoldstein/Downloads/api-node/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
    at tryModuleLoad (module.js:503:12)
    at Function.Module._load (module.js:495:3)
    at Module.require (module.js:585:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/jgoldstein/Downloads/api-node/test/authn_test.coffee:3:5)
    at Object.<anonymous> (/Users/jgoldstein/Downloads/api-node/test/authn_test.coffee:1:1)
    at Module._compile (module.js:641:30)
    at Object.loadFile (/Users/jgoldstein/Downloads/api-node/node_modules/coffee-script/lib/coffee-script/register.js:16:19)
    at Module.load (/Users/jgoldstein/Downloads/api-node/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
    at tryModuleLoad (module.js:503:12)
    at Function.Module._load (module.js:495:3)
    at Module.require (module.js:585:17)
    at require (internal/module.js:11:18)
    at /Users/jgoldstein/Downloads/api-node/node_modules/mocha/lib/mocha.js:220:27
    at Array.forEach (<anonymous>:null:null)
    at Mocha.loadFiles (/Users/jgoldstein/Downloads/api-node/node_modules/mocha/lib/mocha.js:217:14)
    at Mocha.run (/Users/jgoldstein/Downloads/api-node/node_modules/mocha/lib/mocha.js:469:10)
    at Domain.<anonymous> (/Users/jgoldstein/Downloads/api-node/node_modules/gulp-mocha/index.js:56:20)
    at Domain.run (domain.js:227:14)
    at Stream.<anonymous> (/Users/jgoldstein/Downloads/api-node/node_modules/gulp-mocha/index.js:54:5)
    at _end (/Users/jgoldstein/Downloads/api-node/node_modules/through/index.js:65:9)
    at Stream.stream.end (/Users/jgoldstein/Downloads/api-node/node_modules/through/index.js:74:5)
    at DestroyableTransform.onend (/Users/jgoldstein/Downloads/api-node/node_modules/vinyl-fs/node_modules/readable-stream/lib/_stream_readable.js:523:10)
    at Object.onceWrapper (events.js:254:19)
    at DestroyableTransform.emit (events.js:164:20)
    at /Users/jgoldstein/Downloads/api-node/node_modules/vinyl-fs/node_modules/readable-stream/lib/_stream_readable.js:965:16
    at _combinedTickCallback (internal/process/next_tick.js:131:7)
    at process._tickDomainCallback (internal/process/next_tick.js:218:9)

What should be done

  1. Fix the error so the tests can be run
  2. Add additional details and instructions to the README, which is pretty bare at the moment.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.