agco / harvesterjs

Create JSONAPI-compliant APIs over a Node.js + MongoDB stack in an easy, boilerplate-free manner
http://agco.github.io/harvesterjs/
MIT License
68 stars 13 forks source link

Setup dockerized tests #207

Closed lucaslago closed 7 years ago

lucaslago commented 7 years ago

This allows developers to run all tests inside a docker container, turning docker the only dependency needed to run our tests in local and CI environment.

To run all tests in a local dev machine with neither leaking state between test runs nor having to install and configure mongodb/replicaSet just make sure you have docker installed and run:

docker-compose -f docker-compose.test.yml up

PS:

I had to remove coveralls integration due to this issue: https://github.com/lemurheavy/coveralls-public/issues/487

It seems coveralls and travisCI have this recurring problem, I think we can migrate to code climate or codeCov if we need a test coverage tool. But as of right now I value having an easy way to run tests in local environment more than that.

  


This change is Reviewable






ssebro commented 7 years ago

nice cleanup - looks good to me!