I have an Android test project based on InstrumentationTestCase and using AndroidJUnitRunner.
I need to provide my project to another party but I don't want to provide the source code.
Currently I have two projects:
- a Java project that installs the APK of the application I want to test in the device: I have the jar file for this project
- an Android Test Project that tests the application.
The Java project is currently starting the AndroidTestProject by programmatically running "gradlew connectedCheck".
Now I want to give both the installer and the test project to other people but I don't want to disclose the source code. So it would be the equivalent of creating the apk but for a test project.
So my two questions are:
- how to obtain the "executable" for my test project
- how to programatically run it (I assume that without the source code gradlew cC doesn't work).
I don't know if this matters so here goes: my project hierarchy is
Project
.gradle
.idea
app
build
src
androidTest
java
package
sub-packages and java files
main
AndroidManifest
app.iml
build-gradle
proguard-rules.pro
build
gradle
...