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 instrumented tests #21

Merged
merged 2 commits into from
Jun 13, 2020
Merged

Android instrumented tests #21

merged 2 commits into from
Jun 13, 2020

Conversation

MatteoArella
Copy link
Member

This PR adds android instrumented tests on travis

/link #8

@MatteoArella MatteoArella requested a review from gavv June 10, 2020 15:34
@MatteoArella MatteoArella changed the title added android instrumented tests Android instrumented tests Jun 10, 2020
androidTest with --info and --stacktrace

added kvm virtualization
@MatteoArella
Copy link
Member Author

https://stackoverflow.com/questions/17942819/how-can-i-get-clean-gradle-output-on-travis-ci

Nice! 👍

https://github.com/mendhak/Gradle-Travis-Colored-Output

I've already used a similar script on build.gradle. Anyway I've found a richer gradle plugin that we can use for styling tests com.adarshr.test-logger.
Unfortunately all those solutions with afterSuite and afterTest hooks doesn't work for android instrumented tests; the only way for getting more infos about running tests is adding --info --stacktrace to gradle.

@gavv
Copy link
Member

gavv commented Jun 13, 2020

LGTM!

@gavv gavv merged commit 7661c91 into master Jun 13, 2020
@gavv gavv deleted the travis-instrumented-tests branch June 13, 2020 09:25
@gavv
Copy link
Member

gavv commented Jun 13, 2020

By the way, do you know if it's possible to run native (ELF) executables in Android simulator? It would be nice to implement the same approach in the main repo (roc-project/roc) and run our unit tests in simulator, ideally using the same java-android docker image.

@MatteoArella
Copy link
Member Author

By the way, do you know if it's possible to run native (ELF) executables in Android simulator? It would be nice to implement the same approach in the main repo (roc-project/roc) and run our unit tests in simulator, ideally using the same java-android docker image.

Yes it's possible. Just adb push the ELF executable into the emulator and then exec it with adb shell.

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.

2 participants