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

Parameters(name="{index}") work, but name="{index} some string" not work #956

Open
Apple-Flavor opened this issue May 13, 2021 · 3 comments

Comments

@Apple-Flavor
Copy link

if set name = "{index} some string", after gradle build, output display "no test was not found".
if set name = "{index}", after gradle build, test run successfully.
i had connected a physical android device to my PC.

@dmeng
Copy link
Collaborator

dmeng commented May 13, 2021

Can we get a minimal test case to reproduce the error? We don't have enough information to know which Parameters is being discussed

@TWiStErRob
Copy link
Contributor

TWiStErRob commented May 17, 2021

@Apple-Flavor spaces in test names are not supported in Android instrumentation tests. Parameterized runner generates nice display names, but the same way as Kotlin backtick functions cannot contain spaces, these test names cannot either. Use _ instead of space and it should work.

@Colecf
Copy link

Colecf commented May 20, 2021

I realized I duped this in #960. There's a reproducing repo linked there. It's not the spaces that are an issue, any name other than {index} fails.

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

4 participants