On a springboot application I have unit and integration tests. What I want is to control which group of tests to run and when. I mean running units OR integration tests, BUT not both.
I know it is possible through maven, but I was wondering if Spring Profile can be used to achieve this. I mean something like, marking unit tests in one profile, and integration tests in another profile. And at run time I supply a profile, which triggers only running those tests that belongs to that profile.