uber-node / ringpop-node

Scalable, fault-tolerant application-layer sharding for Node.js applications
http://uber.github.io/ringpop/
MIT License
1.18k stars 146 forks source link

Prune dependencies when running integration tests #269

Closed mennopruijssers closed 8 years ago

mennopruijssers commented 8 years ago

Recently we used a dev-dependency in production code by accident. By pruning the dependencies to only use production dependencies during integration tests we make sure this doesn't happen again. However, while implementing it I discovered a problem with main.js: it requires commander and tchannel which are both listed as dev-dependencies.

mennopruijssers commented 8 years ago

(travis will fail until #268 is merged into master)

thanodnl commented 8 years ago

LGTM

dansimau commented 8 years ago

Not sure I agree 100% with the approach here but we're on the right track. My 2c:

I do not agree with adding a new whitelist to the integration test runner script itself. This seems like an obscure place to list yet another set of dependencies and I can see someone getting tripped up by this in the future.

mennopruijssers commented 8 years ago

Closing since we need a better way of doing this.