https://github.com/codepath/android-simple-test-demo
Simple Android App used for Demonstrating Testing (Week 5)
https://github.com/codepath/android-simple-test-demo
Last synced: about 2 months ago
JSON representation
Simple Android App used for Demonstrating Testing (Week 5)
- Host: GitHub
- URL: https://github.com/codepath/android-simple-test-demo
- Owner: codepath
- Created: 2013-10-26T21:01:31.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-11-28T06:24:24.000Z (over 11 years ago)
- Last Synced: 2023-05-10T14:13:27.610Z (about 2 years ago)
- Language: Java
- Homepage:
- Size: 789 KB
- Stars: 12
- Watchers: 9
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# android-simple-test-demo
Simple Android App used for Demonstrating Testing.
See our [Android Testing Guide](https://github.com/thecodepath/android_guides/wiki/Android-Unit-and-Integration-Testing).
![]()
This app is just two activities. The first has a text field and a button. When you type in the text field and hit the button, a second activity appears that displays the text entered.
## Setup
### Robolectric
[Robolectric](https://github.com/thecodepath/android_guides/wiki/Robolectric-Installation-for-Unit-Testing) - Install robolectric, setup new project as explained and then link in the "roboelectric-tests" folder from this repo as a source folder.

To run robolectric unit tests, right-click project and select `Run As => JUnit Test`
### Robotium
[Robotium](https://github.com/thecodepath/android_guides/wiki/Android-Unit-and-Integration-testing#robotium) - Select `File => Import => Existing Projects Into Workspace` and then select the "robotium-tests" folder. This loads the folder into eclipse.

To run robotium tests, right-click project and select `Run As => Android JUnit Test`