Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Test Suites #597

Open
jtj9817 opened this issue Apr 5, 2019 · 5 comments
Open

Add Test Suites #597

jtj9817 opened this issue Apr 5, 2019 · 5 comments

Comments

@jtj9817
Copy link
Contributor

jtj9817 commented Apr 5, 2019

Currently, there is no UI testing or functionality testing for TravelMate. It would be a good idea to start adding testing suites to the app so that it becomes more maintainable in the future. It would be also a good practice for people that wants to contribute to an open source project but they're at lost at where to start, this way they can slowly learn about the project by creating test cases for certain types of behaviours. Here's a good starting point for writing test cases in Android.

How

We can start by dividing the type of testing cases that can be done: UI Tests, Integration Tests, Unit Tests. We can start by writing small test cases first.

For UI:

We can use Espresso testing suite as recommended on this page for UI Tests.

For writing small Integration Tests and/or Unit Tests:

An example of how to write Integration Tests and Unit tests: http://robolectric.org/

Would you like to work on the issue?

I can start working on this issue. Others can help by doing their own Pull Requests.

@Swati4star
Copy link
Member

Looks good. From which module do you think we should start with the test cases?

@jtj9817
Copy link
Contributor Author

jtj9817 commented Apr 18, 2019

@Swati4star Hey Swati,

I started doing experimental testing on the Login Screen and Sign-up Screens, so we might want to start doing testing with the UI first using Espresso and automated testing. I used the method here: https://medium.com/@akifev/android-automation-testing-getting-started-with-espresso-a6f8cb50746a
so if anyone wants to contribute to doing UI testing they can do these too. It's really simple too.

@Komachka
Copy link

Hi! Can I give it a try to write some Espresso tests?

@Swati4star
Copy link
Member

@Komachka Which module do you wanna pick up for writing test?

@eashl003
Copy link

May I be assigned to this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants