ios - how to Unit test using XCTest for bluetooth peripherals -
i developing static library(objective c) find near bluetooth peripherals using 'centralmanager:diddiscoverperipheral' in corebluetooth framework. im new unit test , want unit test(check retrieved peripheral list correct) using xctest. understanding can't test bluetooth stuff using ios simulator. yet wanted know there way using xctest unit test above scenario.
ps: cbperipheral class not have public initializer think can't mock(create dummy cbperipherals using 'category') peripherals guess have work real devices.
Comments
Post a Comment