swagger - Backend REST Service test for Angular Frontend -
i've front-end angularjs app consumes set of rest apis implemented in java.
i don't have control on backend , team gives me new release each week or every day.
sometime change rest api response values (json content) , front-end app breaks!!
how can create tests against backend ?
i've idea (but not sure if it's idea):
- export backend detail swagger json
- using prism generate mock server based on
- call mocked backend endpoint in jasmine tests (in client side) see if right json content
. idea? or there better approaches?
. how can run tests in jenkins if use prism mocked server?
Comments
Post a Comment