JakeWharton / JakeWharton/diffuse

Request for method annotation in the method signature

Open
#37 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
2.2k
Forks
118
Avg merge
2h 18m
Merged PRs (30d)
19

Description

I'd like to use `dex-method-list` to find all the test methods in my apk. Our tests, unfortunately, don't follow a convention that I can use to parse them out, instead we rely on `@Test` annotations.

It would be very nice if the annotations of the method could be available, perhaps behind an option.

I tried to implement this myself, but I got stuck with the DEX file format and did not get the correct annotations out. Here is my WIP

https://github.com/andersjanmyr/dex-method-list/blob/add_annotations_methods/src/main/kotlin/com/jakewharton/dex/DexMethods.kt#L103-L126

If you can give me a pointer in the right direction, I would very much appreciate it.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the WIP implementation in com/jakewharton/dex/DexMethods.kt at lines 103-126, then inspect how the DEX file format represents method annotations. Define how an option should expose annotations and verify that dex-method-list can identify methods using @Test; the issue is complete when annotation data is available in its output.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
cli, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.