Wolox / WLXBluetoothDevice

A block-based wrapper of CoreBluetooth
http://www.wolox.com.ar
MIT License
25 stars 8 forks source link

"Automated testing of Bluetooth dependent code" #45

Open drdaz opened 8 years ago

drdaz commented 8 years ago

In your Readme you state that one of the goals of the project is to "Facilitate automated testing of Bluetooth dependent code". I find this part of the project most interesting, but I'm at a bit of a loss. I can see there are test classes, but I'm not quite sure what to do with them.

Some documentation showing your suggested approach for automated testing (or explaining the test classes you've included) would be really cool here.

drdaz commented 8 years ago

Actually... having bootstrapped and examined the test code, it's starting to make a lot more sense to me. Nice.

guidomb commented 8 years ago

Hey @drdaz thanks for the feedback. I agree a bit more documentation showing how to test your services would be nice. As a first step I would recommend to read the wiki, specially the part about services https://github.com/Wolox/WLXBluetoothDevice/wiki/Services. One way of testing your BLE dependent code is to mock the WLXServiceManager instance.

guidomb commented 8 years ago

Let me know makes it a little more clear. Unfortunately all of my code that uses WLXBluetoothDevice is private but if you have some code samples that you want yo share I can give you some tips on how to test your code using WLXBluetoothDevice.