I am assuming this is possible and is not against standards / Bad Practice.
We are writing end to end tests in SpringBoot @SpringBootTest
for Micro Services and this end to end tests are in a separate module / project (like a microservice).
Plan is to write a controller with an endpoint and takes a profile as param, to run the test @SpringBootTest
programmatically.
Questions:
- How do we run the test the in the way specified above.
- Should we still keep the tests in
src/test
instead ofsrc/main
, since in the end to end spring boot application, all that it has is just a Test class (@SpringBootTest
) with some helper classes? - Any other better to organize this?
没有评论:
发表评论