geddy / model

Datastore-agnostic ORM in JavaScript
265 stars 55 forks source link

Travis-CI Integration Tests #71

Closed ben-ng closed 11 years ago

ben-ng commented 11 years ago

Runs the integration tests on travis, and also provides a json file or environment variables to configure adapters when running tests.

ben-ng commented 11 years ago

In the process of doing this I unearthed two issues.

  1. The events test fails if it's run after the integration tests. Comment out the annotated line in the Jakefile to see this. This seems weird as it's a unit test.
  2. The createTable test in generators/sql.js would silently fail before this PR (Jake would not catch the error). After this PR using the wrong username will cause an error as expected. Still, it's odd that Jake didn't exit gracefully. Reproducible in b608d9d.