Travel-Mate icon indicating copy to clipboard operation
Travel-Mate copied to clipboard

Add Test Suites

Open jtj9817 opened this issue 5 years ago • 5 comments

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.

jtj9817 avatar Apr 05 '19 04:04 jtj9817

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

Swati4star avatar Apr 09 '19 14:04 Swati4star

@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.

jtj9817 avatar Apr 18 '19 21:04 jtj9817

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

Komachka avatar Oct 11 '19 12:10 Komachka

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

Swati4star avatar Oct 11 '19 14:10 Swati4star

May I be assigned to this?

eashl003 avatar Oct 22 '20 09:10 eashl003