⚡️ How to enable Spring profile on ALL integration tests

Опубликовано: 14 Сентябрь 2020
на канале: Maciej Walkowiak 🍃 Spring Academy
4,261
118

Quick tip on how to activate Spring profile on integration tests without repeating yourself all the time. Solutions for both Maven and Gradle.

I messed up a bit positioning on my video circle when showing Gradle so here is the snippet that has to be added to build.gradle:

test {
systemProperty "spring.profiles.active", "test"
}

⭐️ Follow me on twitter   / maciejwalkowiak  

In my channel I discuss things I believe are relevant to either Java & Spring beginners, or advanced developers who want to stay up to date. Feedback is very much welcome!


Смотрите видео ⚡️ How to enable Spring profile on ALL integration tests онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Maciej Walkowiak 🍃 Spring Academy 14 Сентябрь 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 4,261 раз и оно понравилось 118 людям.