snowdrop-zen / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
1 stars 0 forks source link

Extend QuarkusTestCallbacks with a context like JUnit Jupiter #103

Closed snowdrop-bot closed 4 years ago

snowdrop-bot commented 4 years ago

Description Currently you only get the test instance, but it would be nice to have more context, like TestClass, TestMethod.

This request is result of Zulip talk with @geoand https://quarkusio.zulipchat.com/#narrow/stream/187030-users/topic/QuarkusTestExtension

Implementation ideas

public interface QuarkusTestBeforeEachCallback {

    void beforeEach(QuarkusCallbackContext context);
}

public class QuarkusCallbackContext {

    private Object testInstance;

    private Class<?> testClass;

    private Method testMethod;
    ...
}

https://github.com/quarkusio/quarkus/issues/9812


$upstream:9812$