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

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

php - Cannot override Laravel Spark authentication with own implementation -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -