Add e2e/integration tests to server routes
ccjoel opened this issue · 1 comments
ccjoel commented
We can easily add a test, label it with :integration (for lein to ignore in local environments if desired) which starts core/-main
and usses http-kiy/client to make calls to inspections, businesses, counties, and violations endpoints and check expected status codes (200/422/404 ) meta, data, on json response. This way we'll always know when changes could introduce regressions.
ccjoel commented
Added some integration tests. We can add more + add fixtures (instead of using a travis user with select/read-only permissions).