Cotel / Android-Comonadic-UI

An experiment for bringing Comonadic UIs to Android
17 stars 1 forks source link

Adding tests #4

Closed Cotel closed 6 years ago

Cotel commented 6 years ago

Close #1

I've added the 5 tests the issue details.

I haven't found the way to test paintFlags to see if a text view is stroken through so for that test I just perform the operations needed for arriving to the state I want and then I perform an assertion with the ServiceLocator which couples us a little bit to the implementation but I think we can use this for the moment.

I've also decided to make a recorded test for adding new todos as it involves many operations between screens and it was easier for me to record it.

tonilopezmr commented 6 years ago

If you have added tests, It is a cool idea to add the .travis.yml file

Cotel commented 6 years ago

Dunno why travis is not triggering. Maybe it has to be in master at least once. I'm merging this and hope it triggers on the next PR.