salesforce / rules_spring

Bazel rule for building Spring Boot apps as a deployable jar
BSD 3-Clause "New" or "Revised" License
224 stars 48 forks source link

Provide a test launcher that uses the Spring Boot launcher #142

Open plaird opened 2 years ago

plaird commented 2 years ago

We had a case internally where @SpringBootTest was not sufficient to surface some classpath issues. Notably the Spring Boot launcher jar was not on the classpath. The service also had some additional classpath issues that only appeared when launched using bazel run.

@SpringBootTest does not actually use the springboot executable jar, so is not a real test of the deployable unit.