Skip to content
Discussion options

You must be logged in to vote

Hi @hakuseki,

You can have a look at https://github.com/quarkusio/quarkus/blob/ad91929509c6bc1d81ce99739c6e9dfbc4cf5d84/test-framework/junit5/src/main/java/io/quarkus/test/junit/nativeimage/ClassInclusionReport.java to see how we do this in Quarkus integration tests.

Note: it depends on building with quarkus.native.enable-reports=true

If you don't need this kind of testing to be automated, then just build with quarkus.native.enable-reports=true and grep for the classes you are interested in in the generated used_classes_*.txt file under the target/*-native-image-source-jar/reports directory.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by hakuseki
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment