Now that BuddyBuild is owned by Apple and no longer supporting Android apps I have no interest in continuing this project. So long and thanks for all the fish.
We use BuddyBuild to build the BuddyBuild Android client. What did you expect?
We load .json files from disk during unit tests. When running tests from CL (e.g. ./gradlew test
) the path that the tests is run on is not the same as when running tests from within Android Studio. To fix this, we need to tell Android Studio to run tests from the module path for all Android JUnit tests:
We have tests for the following modules:
core
- "local" unit testsrest
- "local" unit testsapp
- "local" unit tests, "instrumentation" unit tests
Run all of these tests via command line with
$ ./gradlew clean core:test rest:testDebugUnitTest app:connectedDebugAndroidTest
We run Lint and Checkstyle on the project. Check lint.xml
and checkstyle.xml
to see our blacklisted/whitelisted
checks. Run all of these checks from command line with:
$ ./gradlew clean rest:lint app:lintDebug
$ ./gradlew clean core:checkStyleMain core:checkStyleTest rest:androidCheckstyle app:androidCheckstyle