from JAR?
I want to compile tests on a build stage
and run them at a separate test stage without Java sources (only with compiled already .classes packed into a jar-file)
I've already found how to pack tests into a jar with Gradle task (https://pastebin.com/UynrjvjP)
And run JUnit5 tests from it (https://pastebin.com/B18eBeUD)
But suddenly there SpringBoot tests were added and now such tests fail as SprintBoot context is not initialized
So, the question is how to run SpringBoot tests via "public static main" ?
Коллеги, есть пример как запускать SpringBoot tests из JAR-ника?
Обсуждают сегодня