theappbusiness / TABTestKit

Library designed to make writing and maintaining automated tests for iOS applications. This includes automation of bio-metrics and controlling of mock servers
MIT License
59 stars 13 forks source link

`launchTheApp(clean: false)` in `AppContext` does not remove launch argument #74

Closed KaneCheshire closed 4 years ago

KaneCheshire commented 4 years ago

There's a sneaky bug when calling the function with clean: false because this:

clean ? App.shared.launch(clean: true): App.shared.activate()

means that when we call .activate() the launch argument to clean is still present (since it's only removed when calling .launch(clean: false).

I think in this case it's better to just make the function body be:

App.shared.launch(clean: clean)