Skip to content

Conversation

@domdomegg
Copy link
Member

@domdomegg domdomegg commented Apr 19, 2019

Description

Fixes #2226, #2823. Has Travis run all the android tests.

An example is here:
https://travis-ci.com/domdomegg/apps-android-commons/builds/108990409

@maskaravivek Due to #2868 this doesn't work on master - probably need your help with this. Having a look at #2829 the obvious cause is the removal of StringUtils but using alternatives just doesn't seem to work after that PR (e.g. even just checking if it's an empty string).

Future plans

Ideally the androidTests can be separated from the unit tests for faster builds. I think this should be relatively easy once this is up and running on Travis. Relevant docs: https://docs.travis-ci.com/user/build-matrix/

@domdomegg domdomegg requested a review from maskaravivek April 19, 2019 18:01
minSdkVersion 19
targetSdkVersion 28
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunnerArguments clearPackageData: 'true'
Copy link
Contributor

Choose a reason for hiding this comment

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

Will all tests pass if we don't clear data before every test?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, they all work fine now as we've removed the temperamental ones, and the emulator starts it from a clean state at the beginning.

@domdomegg
Copy link
Member Author

@maskaravivek please can you have a look at fixing #2868 so this can be merged.

@maskaravivek maskaravivek marked this pull request as ready for review December 17, 2019 11:32
@maskaravivek
Copy link
Contributor

@domdomegg I have fixed #2868. Let us try to get this PR merged. :)

@maskaravivek
Copy link
Contributor

@domdomegg Is the PR ready for review?

@domdomegg
Copy link
Member Author

domdomegg commented Mar 1, 2020

Don't think so, Travis still isn't building it :(

https://travis-ci.com/domdomegg/apps-android-commons/builds/151255220

@domdomegg domdomegg changed the title Run androidTests in Travis [WIP] Run androidTests in Travis Mar 1, 2020
@maskaravivek
Copy link
Contributor

Yup, i had tried using your changes in #3298 but faced the same issue.

@neslihanturan
Copy link
Collaborator

This PR is WIP for long time, do you think we should keep it open @domdomegg , or do you think another solution will be needed for this task?

@domdomegg
Copy link
Member Author

We need to redo some of the UI test logic I think. Will require more changes. Closing for now.

@domdomegg domdomegg closed this Mar 4, 2021
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.

Running androidTests in Travis

3 participants