CodeforSouth / fbi-api

😴 Florida Business Inspections API
http://138.197.90.94/
MIT License
13 stars 5 forks source link

Add e2e/integration tests to server routes #79

Closed ccjoel closed 7 years ago

ccjoel commented 7 years ago

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 7 years ago

Added some integration tests. We can add more + add fixtures (instead of using a travis user with select/read-only permissions).