chorhatarahuduketuri / gc

GalacticConquest
0 stars 0 forks source link

Add minimal test framework including PoC tests #28

Closed chorhatarahuduketuri closed 6 years ago

chorhatarahuduketuri commented 6 years ago

This invovles bumping the minSdkVersion 8->9, and correcting the defaultConfig applicationId in build.gradle.

Several new dependencies were added, along with whole new directory structures containing the 'proof of concept' example tests.

This represents a significant step forward in the development of this app, in particular in how we go about writing code.

Also included are some XML config files in the .idea dir. Obviously necessary is the runConfiguration.xml file, which is part of running the tests. Less necessary - but included for the sake of completeness - are misc.xml and the .idea/codeStyles/ dir, which contains codeStyleConfig.xml and Project.xml.

chorhatarahuduketuri commented 6 years ago

The travis CI checks are failing because the instrumented test has no device to connect to. I will try to figure out how to fix that now.

chorhatarahuduketuri commented 6 years ago

For the record, I'm specifying the use of oraclejdk10.

chorhatarahuduketuri commented 6 years ago

See here: https://docs.travis-ci.com/user/languages/android/#How-to-Create-and-Start-an-Emulator

adrianlshaw commented 6 years ago

@chorhatarahuduketuri how do you manually run the unit tests?

chorhatarahuduketuri commented 6 years ago

To run unit tests manually, go to the file with them in and right click, then select run. Alternatively, right click on the test name and do the same.