In order to compare RxTest
to XCTestExpectation
, an extremely simple game was built using RxSwift and each commit tells a story of its evolution.
The game has the following requirements:
- Every tap should increment 1 in the score
- The first tap also starts the timer, which should countdown until its end
- The score can only be incremented while the timer is running