2

Spring 6/Spring Boot 3 allows to run tests using GraalVM's native-image with mvn -Pnative test.

This uses the native-maven-plugin. This plugin respects both -DskipTests and -Dmaven.test.skip and there is also a flag -DskipNativeTests to skip native tests only.

Is there a way to skip "normal" tests (using the surefire plugin) but still preprocess and run native tests?

dan1st
  • 12,568
  • 8
  • 34
  • 67
  • can't you do it with `mvn -Pnative -DskipTests ` – muhammed ozbilici Nov 14 '22 at 15:32
  • @muhammedozbilici That also skips native tests (just like `-Dmaven.test.skip`). As I mentioned in the question, `native-maven-plugin` respects `-DskipTests`, `-Dmaven.test.skip` and `-DskipNativeTests`. – dan1st Nov 14 '22 at 18:34

0 Answers0