Skip to content

Move @Testable to a new junit-platform-commons-api artifact #4446

@yuuki3655

Description

@yuuki3655

The @Testable annotation is a useful tool for TestEngine developers to facilitate the integration of custom tests executed by our own test engine with IDEs.

You can define the following annotation class for your test engine.

@MustBeDocumented
@Retention(AnnotationRetention.RUNTIME)
@Target(AnnotationTarget.FUNCTION)
@Testable
annotation class MyTest

Then, you can use it from your test case.

@MyTest
fun myTest() {  }

However, it introduces a transitive dependency on junit-platform-commons, which includes a number of unnecessary utility classes for this use case, such as LruCache.

Deliverables

  • Create a new Maven artifact named junit-platform-commons-api and move the @Testable annotation to it.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions