android / android/android-test
AndroidX Orchestrator Enforces Naming Length Constraints
- Dominant language
- Java
- Stars
- 1.2k
- Forks
- 342
- Avg merge
- 11h 29m
- Merged PRs (30d)
- 2
Description
### Description
When using the AndroidX Orchestrator (I have not tested the Android one, but assume it will be the same) some tests are skipped if the length of the classname + method name is too long
### Steps to Reproduce
Create a test within a class, where the class name (including the package) and the method name total over 250 characters.
### Expected Results
Test runs correctly, OR an error is printed that directs the developer to adjust this
### Actual Results
This test will not run (but it's not marked as ignored, etc.)
I have a feeling this is because the Orchestrators create a directory on the device for the ADB output, and thusly if the method/class name is too long, it overflows the file-name-length constraints on the particular device. It is, however, unfortunate, that no relating error is ever bubbled up to the developer.
Contributor guide
Research direction
Start by reproducing the issue with AndroidX Orchestrator using a test whose fully qualified class and method names exceed 250 characters. Trace the Orchestrator's handling of the test output path and verify that the test either runs successfully or reports an actionable naming constraint error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile, testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100