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

Tests with method parameters do not have context menu in test results window #200

Open
matejdro opened this issue Nov 28, 2019 · 2 comments

Comments

@matejdro
Copy link

Probably related to #199.

Steps to reproduce:

  1. Run whole instrumented class test that has at least one test method with parameters (such as ActivityOneTest)
  2. Attempt to right click on the tests in test results window

Test without parameter will display normal context menu:
image

However, right clicking on test with method parameters will just yield "Nothing here" popup:
image

@mannodermaus
Copy link
Owner

As you're mentioning here, I also believe that this is related to #199 via the fact that ADB and Android Studio do not acknowledge methods with parameters just yet.

For some context, our instrumentation library installs a custom "Runner Builder" into the test execution pipeline and detects all JUnit 5 stuff. It's connected to a org.junit.runner.Runner implementation with a run() method. That method is not called by the Android instrumentation if the single method contains parameters. I do not know of a way to force it to detect these methods, unfortunately. We'll have to resort to running entire test classes as the next-best point of execution until this is resolved.

@bramhaag
Copy link

bramhaag commented May 3, 2021

I believe this would be useful information to mention in the Scenario as Parameter section here, as I've just spent some time trying to figure out why the example wasn't working.

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

No branches or pull requests

3 participants