intelsdi-x / snap-plugin-collector-mesos

Collects Apache Mesos cluster metrics
http://snap-telemetry.io/
Apache License 2.0
14 stars 19 forks source link

Refactor test script #8

Closed ghost closed 8 years ago

ghost commented 8 years ago

Prior to this commit, the test script test.sh was a very procedural bash script without a lot of structure. This made it a bit confusing to read through, and resulted in a developer needing to comment out several lines to disable functionality.

This commit refactors test.sh into several functions, which are then called based on which test suite is running (unit or integration). This should make it easier to understand and maintain, while making it easy to enable / disable features in this script going forward.

ghost commented 8 years ago

Note that this also removes golint and the race detector, since those were already commented out.