Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow specifying arbitrary Runners to use through LWTS #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Pokechu22
Copy link

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.

@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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants