This Swift Package provides convenient extension points to write tests using XCTest.
XCTestExtensions
is a collection of extensions for commonly used functionality in UI tests using XCTest. You can learn more about XCTestExtensions
in the API documentation.
It includes the functionality to
- delete & launch an application to reset the application
- disable password autofill on an iOS simulator to avoid challenges with the text entry in secure text fields
- enable a simple text entry in plain and secure text fields
The XCTestApp
target enables writing test-based apps that can be verified in a UI test. You can learn more about XCTestApp
in the API documentation.
The project can be added to your Xcode project or Swift Package using the Swift Package Manager.
Xcode: For an Xcode project, follow the instructions on Adding package dependencies to your app.
Swift Package: You can follow the Swift Package Manager documentation about defining dependencies to add this project as a dependency to your Swift Package.
This project is licensed under the MIT License. See Licenses for more information.
This project is developed as part of the Stanford Byers Center for Biodesign at Stanford University. See CONTRIBUTORS.md for a full list of all XCTestExtensions contributors.