Description
The app currently has no unit tests. We should add basic tests for the core logic: Config loading/saving and Router decision logic.
Tasks
Resources
- Use
XCTest framework (built-in)
- Tests go in
Tests/BrowserProxyTests/
Testing
- Run
swift test and verify all tests pass
Description
The app currently has no unit tests. We should add basic tests for the core logic: Config loading/saving and Router decision logic.
Tasks
Tests/directory with a test targetConfigDataencoding/decodingConfig.browser(for:)logicRouter.runningBrowserIDs()andRouter.powerSource()Package.swiftto include test targetResources
XCTestframework (built-in)Tests/BrowserProxyTests/Testing
swift testand verify all tests pass