coverage-collector

0.0.5 • Public • Published

coverage-collector

a simple server for collection of code coverage objects

Starting the server

    var collector=require('coverage-collector');
    collector({port:3001});

Collecting data

curl -X POST http://localhost:3001/data -H "Content-Type: application/json" -d '{"coverage":"object"}'

Retrieving collected data

curl -X GET http://localhost:3001/data returns [{"coverage":"object"}]

Stopping the server

curl -X GET http://localhost:3001/done

Contributing

If you have issues or you want to discuss other use cases, feel free to open an issue or send a pull request on github

Package Sidebar

Install

npm i coverage-collector

Weekly Downloads

278

Version

0.0.5

License

APLv2

Last publish

Collaborators

  • r3b