In this PR we add the setup necessary to enable the addition of integration and end-to-end tests to proj-happycows. This includes
The wiremock profile for localhost debugging with mocked oauth and the integration profile for running the integration and end-to-end tests.
Example integration tests CommonsIT.java and example end-to-end tests CommonsWebIT.java
Note about some changed files:
By adding WiremockService in HappierCowsApplication.java, it requires some tests under /jobs to have a @MockBean with the service in order to load the application context.
In this PR we add the setup necessary to enable the addition of integration and end-to-end tests to proj-happycows. This includes
wiremock
profile for localhost debugging with mocked oauth and theintegration
profile for running the integration and end-to-end tests.CommonsIT.java
and example end-to-end testsCommonsWebIT.java
Note about some changed files: By adding
WiremockService
inHappierCowsApplication.java
, it requires some tests under/jobs
to have a@MockBean
with the service in order to load the application context.This was done in parallel with the writing of this tutorial https://ucsb-cs156.github.io/topics/spring_react/spring_react_testing_pyramid.html