You are running application test, not logic test. This means an instance of your app will be started and then run the unit tests. This allow you to perform some integration test that require your app is running.
Here is the guide to setup application test and logic test.
If you want to change it to logic test (so it run faster and don't need to start your app first):
- go to build settings for your unit test target
- search
Bundle
- remove Bundle Loader and Test Host
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…