Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Revise scope of SpringBootTestHints #1221

Closed

Description

@sbrannen

Currently SpringBootTestHints has the following limitations.

  • It only searches for @Test annotations; whereas, it should search for @Test, @TestFactory, and @TestTemplate (which covers @ParameterizedTest and @RepeatedTest).
  • It sets checkMetaUsage to false for getMethodsWithAnnotationName(...), but all JUnit Jupiter annotations can be used as meta-annotations.

Activity

  1. added this to the 0.11.0-RC1 milestone on Nov 5, 2021
  2. self-assigned this
    on Nov 5, 2021
  3. sbrannen commented on Nov 6, 2021

    @sbrannen
    ContributorAuthor

    Note that the code in question in SpringBootTestHints actually duplicates what the JUnitPlatformFeature in Native Build Tools already does automatically (namely, automatic reflection configuration registration for all test classes):

    https://github.com/graalvm/native-build-tools/blob/15bea361faf74d2f36655aef688995be17e59918/common/junit-platform-native/src/main/java/org/graalvm/junit/platform/JUnitPlatformFeature.java#L146

    In light of that, it may be best to just leave SpringBootTestHints as it currently is or consider removing the test class reflection configuration registration from SpringBootTestHints.

  4. added a commit that references this issue on Nov 9, 2021
    b54ffd8
  5. changed the title [-]SpringBootTestHints should support all JUnit Jupiter test annotations[/-] [+]Revise scope of SpringBootTestHints[/+] on Nov 9, 2021
  6. added a commit that references this issue on Feb 17, 2024
    7f79ca2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type: enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions