summaryrefslogtreecommitdiff
path: root/app/src/androidTest/java
AgeCommit message (Collapse)Author
2015-06-24Tuned some times, refactoring testsParménides GV
2015-06-08s/buildtype/flavor, changed riseup's pinParménides GV
Riseup's EE certificate expired (EE = End-Entity, the commercial certificate signed by the issuer), and we weren't able to fetch provider.json because the pin wasn't valid. This problem needs to be avoided in the future, using HKPK (https://tools.ietf.org/html/rfc7469), which Micah's implementing on Riseup. Switching from build types from flavors enables us to run tests against production apk, not just debug. I didn't detect this pinning problem because tests were run only against the debug apk, which trusted preseeded providers by default (thus bypassing pinning issue).
2015-06-01Update robotium + increase wait timesParménides GV
Sometimes, the emulator is so slow (I wish genymotion was open source...) that even though everything's going OK tests fail because they don't wait enough.
2015-05-29Tests failed because testOnFailed failed. Added TODO related.Parménides GV
testVpnButtonIsDisplayed and testVpnIconIsDisplayed fail because calyx in testVpnEveryProvider fails, but if you run them alone they pass.
2015-05-29Gateways manager added a gateway from string twice.Parménides GV
Give more time to provider details fragment to appear, because debugging makes the code run slowly.
2015-05-01testOnFailed()Parménides GV
And checks in controllers, so that if a button isn't shown, I throw a new IllegalStateException. This helps to trace the error.
2015-05-01Added test with an incorrect password.Parménides GV
2015-05-01Separated tests for VpnFragment.Parménides GV
2015-05-01Separated tests for UserStatusFragment.Parménides GV
This way, I can add more easily the tests for errors.
2015-04-30Works smoothly, correct texts.Parménides GV
Next step: beautify.
2015-04-29Dynamically load user session fragment.Parménides GV
Tests click new button, instead of action bar's. Fixing more bugs...
2015-04-29Creating a user session fragment.Parménides GV
I've separated the user session management to it, and encapsulated ProviderAPICommand into its own class. Putting the fragment statically in dashboard.xml isn't working, Android complains about it being duplicated, so I'm going to add it dynamically.
2015-04-28Take screenshots of the changes.Parménides GV
2015-04-27Added a button to the UIParménides GV
Turn on VPN touching that button, and leave the image as a mere indicator.
2015-04-27testEveryProvider also worksParménides GV
2015-04-23Tests pay attention to the vpn icon to know statusParménides GV
They were relying on status messages, but I've removed that TextView.
2015-04-23Test to check that the vpn button is shownParménides GV
Fixed more tests, broken due to previous pullreqs...
2015-04-22Method to see if a view is actually shown.Parménides GV
Thanks to http://stackoverflow.com/questions/3791607/how-can-i-check-if-a-view-is-visible-or-not-in-android/12428208#12428208
2015-04-22Tests for ConfigurationWizard passParménides GV
I've done this because of https://leap.se/code/issues/6863#note-2, testing the previous commit's changes.
2015-03-30Wait for the vpn certificate download to start vpn in testParménides GV
2015-03-30Cleaning moved methods.Parménides GV
2015-03-30testEveryProvider() coded and working.Parménides GV
Calyx fails.
2015-03-27Just coded, not testedParménides GV
2015-03-24Indent everything with IntelliJParménides GV
2015-03-24Cleaned imports, use wildcards when appropriateParménides GV
2015-01-19More tests, sometimes they don't pass sometimes doParménides GV
testIsValid depends on the speed of Runtime's exec: sometimes it's quick and passes (because it changes the date correctly) and sometimes is not. A waitFor doesn't fix the issue, it waits forever.
2015-01-19Tests for valid certificate.Parménides GV
2015-01-19Extracted GatewaysManager + coded its testsParménides GV
2015-01-19Beginning the tests for EIP.Parménides GV
2014-12-31Don't remove vpn profiles if possible.Parménides GV
2014-12-01Reordered EIP methods.Parménides GV
Written basic skeleton for testEIP, renamed testDashboard to start, in the future, unit tests.
2014-11-26More refactoring, fixed problems from previous commit.Parménides GV
2014-11-22Ask to log in to update certificate if needed.Parménides GV
ProviderAPI from debug build uses an invalid certificate the first time it tries to download a new cert, just to test this.
2014-07-24network up & down 3 times: sometimes failsParménides GV
I simulate removing the network at the end of the test. Sometimes, the test fails because a openvpn tries to close a bad file descriptor.
2014-07-24Simulate network down.Parménides GV
The tests say they failed, but it's because the adb server is no longer able to communicate with the emulator due to switching network connectivity off (and being the adb server connected to a local tcp port of the emulator, this port dissapears once connectivity is down). To see if all tests passed, take a look at the logcat. Once tests are finished, issue "adb kill-server" from the development machine, and then "adb logcat".
2014-07-24We don't need support library from Robotium.Parménides GV
I've also fixed a simple test that wasn't letting the suite to finish correctly.
2014-05-07Signup protocol coded. UI next.Parménides GV
2014-04-14testAddNewProvider adds calyx.netParménides GV
The test that checked how many providers were listed was failing because this test added dev.bm.net, which was already present in the debug apk, so no new provider was added.
2014-04-09Back to the standard "app" module.Parménides GV
This return to "app" instead of "bitmask_android" is due to this reading: https://developer.android.com/sdk/installing/studio-build.html#projectStructure I'll have to tweak the final apk name in build.gradle.
2014-04-08Rename app->bitmask_androidParménides GV
This way, gradle commands generate apks correctly named.
2014-04-08Next step: compile jni sources correctly.Parménides GV