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

Test apk for library is installed twice #75

Open
lsuski opened this issue Dec 23, 2019 · 3 comments
Open

Test apk for library is installed twice #75

lsuski opened this issue Dec 23, 2019 · 3 comments

Comments

@lsuski
Copy link

lsuski commented Dec 23, 2019

There is this code in your plugin

  // This is a hack for library projects.
            // We supply the same apk as an application and instrumentation to the soon runner.
            applicationApk = if (testedOutput is ApkVariantOutput) testedOutput.outputFile else instrumentationApk

and it causes to install twice same apk if we are testing library which slows down whole execution. What is the reason of this hack?

@jaredsburrows
Copy link
Owner

This code just checks which APK is used. How is it installed twice?

@lsuski
Copy link
Author

lsuski commented Dec 30, 2020

Spoon installs applicationApk and and instrumentationApk - for library this is the same apk so it installs it twice

@jaredsburrows
Copy link
Owner

We can add a check and only run this for com.android.library projects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants