RobotPajamas / SwiftyTeeth

A simple, lightweight library intended to take away some of the cruft and tediousness of using CoreBluetooth
Apache License 2.0
23 stars 8 forks source link

Create Mock objects for unit testing/simulation #25

Open sureshjoshi opened 6 years ago

sureshjoshi commented 6 years ago

Right now, SwiftyTeeth/Device shouldn't be directly used in unit tests - because of the clumsy mocking that would be necessary.

Would be nice to have a Mock/Test object which could be used in its place

sureshjoshi commented 6 years ago

RxTest might be a good inspiration for some possibilities

sureshjoshi commented 6 years ago

Node-serialport has mocks, retrofit has mocks, need to get some inspiration