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

Add support for test classes that extend other test classes - #13 #16

Merged
merged 5 commits into from
Jul 23, 2018

Conversation

kkoser
Copy link
Contributor

@kkoser kkoser commented Jul 19, 2018

This supports both abstract and concrete superclasses.

Normally, test methods are found via reflection which is why methods defined from the super class would be included. This
adds the same behavior to dex-test-parser to match with what is expected when running tests via adb directly.

This supports both abstract and concrete superclasses.

Normally, test methods are found via reflection which is why methods defined from the super class would be included. This
adds the same behavior to dex-test-parser to match with what is expected when running tests via adb directly.
@kkoser kkoser requested a review from drewhannay July 19, 2018 22:32
@kkoser kkoser mentioned this pull request Jul 19, 2018
@bootstraponline
Copy link

Awesome!

Copy link
Contributor

@drewhannay drewhannay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add #10 to this as well?

@@ -58,7 +58,7 @@ class DexParser private constructor() {
val dexFiles = Companion.readDexFiles(apkPath)

val junit3Items = findJUnit3Tests(dexFiles).sorted()
val junit4Items = dexFiles.flatMap { it.findJUnit4Tests() }.sorted()
val junit4Items = findAllJunit4Tests(dexFiles).sorted()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: can we use JUnit in this method name to match the other one?

@kkoser kkoser mentioned this pull request Jul 23, 2018
kkoser added 2 commits July 23, 2018 10:24
This is a breaking change to the methods to find JUnit4 methods. Also updated the changelog to indicate this
We want to have a section for the current snapshot, so people can add changes there as they are added
@drewhannay drewhannay merged commit 092eb96 into linkedin:master Jul 23, 2018
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.

3 participants