How to start with empty Core Data for every UI Test Assertion in Swift?

前端 未结 1 1958
感情败类
感情败类 2021-02-09 09:09

I have an application that makes use of core data. The behavior of the application is different depending on whether that data has been populated yet.

I had hoped that,

1条回答
  •  长情又很酷
    2021-02-09 09:34

    You can do this easy by using XCUIApplication().launchEnvironment = ["key":"val"]

    and checking if you AppDelegate and parsing NSProcessInfo.

    I am battling to get information form the app to the test / sending instruction not only during startup.

    0 讨论(0)
提交回复
热议问题