./gradlew clean check connectedCheck jacocoTestReport --stacktrace
to execute unit tests.Feel free to contact us if you have any problems.
@nicolas-raoul I've added this as beginner task on GCI dashboard, let me know if this suits you. I think that its really good introduction to git / github in general.
While this does not add immediate new features to the app, it is a good exercise, don't hesitate to improve our wiki (do you have write access to it?) based on the difficulties they encounter, thanks a lot! :-)
-GCI 2017-
Hello,
I am encountering build errors while running tests in Android Studio.
Simply running the app in emulator works. Only the command provided in GCI dashboard produces the error.
While test are running i can see some automated stuff happening in emulator like opening/closing of app (nearby) etc. (i also accepted some permission request)
sorry for the trouble, i'm new to android development.
Logs as requested -> https://pastebin.com/CshEhZva


@feelfreelinux I let you check and approve the task. Please note that the unit tests are currently broken, so the result obtained by Singh is probably expected.
@nicolas-raoul , @feelfreelinux - Sir, should i submit the task for review with the above results then?
Let's wait for @feelfreelinux 's evaluation.
@nicolas-raoul @singh-anmol I just ran unit tests on my machine, can confirm this issue. You can submit task on GCI dashboard, and I will accept it :) Need to add note in task description that tests are currently broken
There's a PR (#990) that addresses the broken test.
@feelfreelinux I would highly suggest that you modify the task description to something like "1. Build, 2. Run the unit tests, 3. Tell us whether the unit tests are passing or failing"
Advantages of adding the 3rd step:
Also, I suggest using the expression "unit tests are failing" rather than "unit tests are broken", as far as I can tell it seems to be the right terminology, even though casual usage might differ :-)
Cheers!
Tests should hopefully be passing now, sorry about that guys! (and thanks, @psh )
I agree with @nicolas-raoul 's suggestion for the 3rd step... the status of our tests can change fairly often.
Most helpful comment
Let's wait for @feelfreelinux 's evaluation.