Skip to content
This repository was archived by the owner on Nov 17, 2026. It is now read-only.

Allow specifying arbitrary Runners to use through LWTS - #3

Open
Pokechu22 wants to merge 1 commit into
SpongePowered:masterfrom
Pokechu22:arbitrary-runners
Open

Pokechu22 wants to merge 1 commit into
SpongePowered:masterfrom
Pokechu22:arbitrary-runners

Conversation

@Pokechu22

Copy link
Copy Markdown

This allows using any Runner with LWTS, instead of just the default runner (BlockJUnit4ClassRunner) and the Parameterized runner. This is done by creating a @DelegatedRunWith annotation that is used to find the runner to run.

I create 2 new classes: DelegateRunner and LaunchWrapperDelegateRunner. LaunchWrapperDelegateRunner is responsible for loading the class via LaunchWrapper. DelegateRunner is responsible for delegating to another runner by class (either explicitly specified or from @DelegatedRunWith). I separated these mainly because I have a hacky situation where I might want to use @DelegatedRunWith without running LaunchWrapper.

The existing LaunchWrapperTestRunner and LaunchWrapperParameterized should work exactly the same as before.

@Pokechu22
Pokechu22 force-pushed the arbitrary-runners branch from 166b064 to aade194 Compare July 7, 2018 01:29
@Pokechu22
Pokechu22 force-pushed the arbitrary-runners branch from aade194 to 69a1f1b Compare July 7, 2018 01:59
@stephan-gh
stephan-gh self-requested a review September 19, 2018 06:50
@stephan-gh stephan-gh self-assigned this Sep 19, 2018
@stephan-gh
stephan-gh removed their request for review May 7, 2021 17:34
@stephan-gh stephan-gh removed their assignment May 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants