remirobert / Dotzu

:iphone::eyes: In-App iOS Debugging Tool With Enhanced Logging, Networking Info, Crash reporting And More.
MIT License
1.8k stars 141 forks source link

Device class is now more testable #35

Closed f-meloni closed 7 years ago

f-meloni commented 7 years ago

Device class is now more easy to mock. What i did to accomplish that is just remove all the static variables from the class. I also made the class more swift like. Another good point is that now the InformationsTableViewController has his own device instance, and this makes it more easy to test, with a snapshot test for example, but also with UI tests, with mocked Device class

CocoaDebug commented 6 years ago

Hi, I released DebugMan, it is forked from Dotzu. Welcome to use! 😃 thanks! @f-meloni