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

Android Unit Tests running for hours #29

Open
MichBogus opened this issue Apr 24, 2018 · 1 comment
Open

Android Unit Tests running for hours #29

MichBogus opened this issue Apr 24, 2018 · 1 comment
Labels

Comments

@MichBogus
Copy link

Hello!

On our project we do have two different packages in androidTest. One is for Espresso tests only, and second one is for Android unit testing. Right now we do have two separate tasks for building each package, but after going for gradle 3.x from 2.x we are occurring problem with tests from Android unit tests package. For some odd reason they are building like Espresso tests and instead of going for max 3 minutes, they take hours to run (there are over 1400 of them so you can get the idea how it feels).

Of course we are using typical spoon configuration

spoon { debug = true if (project.hasProperty('espresso')) { instrumentationArgs = ["package=espresso"] } else if (project.hasProperty('unit')) { instrumentationArgs = ["package=pl.araneo.farmadroid"] //going for 1,5h instead of 3 minutes } sequential = false grantAllPermissions = true noAnimations = true }

And tasks for it:

task androidUnitTestIZI(dependsOn: 'spoonDebugAndroidTest') task instrumentationTestIZI(dependsOn: 'spoonDebugAndroidTest')

Do you have any idea?
P.S. on old Spoon everything was going really nice.

Thanks

@jaredsburrows
Copy link
Owner

Are you still seeing this?

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

No branches or pull requests

2 participants