https://github.com/stanfordbdhg/xctestextensions
Extensions for commonly used functionality in UI tests using XCTest.
https://github.com/stanfordbdhg/xctestextensions
stanford swift swiftpackage test uitest unittest xcode xctest
Last synced: 3 months ago
JSON representation
Extensions for commonly used functionality in UI tests using XCTest.
- Host: GitHub
- URL: https://github.com/stanfordbdhg/xctestextensions
- Owner: StanfordBDHG
- License: mit
- Created: 2023-02-03T22:13:56.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-02-13T12:42:41.000Z (over 1 year ago)
- Last Synced: 2025-04-12T09:43:36.899Z (about 1 year ago)
- Topics: stanford, swift, swiftpackage, test, uitest, unittest, xcode, xctest
- Language: Swift
- Homepage: https://swiftpackageindex.com/StanfordBDHG/XCTestExtensions/documentation
- Size: 108 KB
- Stars: 3
- Watchers: 11
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
- Citation: CITATION.cff
Awesome Lists containing this project
README
# XCTestExtensions
[](https://github.com/StanfordBDHG/XCTestExtensions/actions/workflows/build-and-test.yml)
[](https://codecov.io/gh/StanfordBDHG/XCTestExtensions)
[](https://zenodo.org/badge/latestdoi/597215549)
[](https://swiftpackageindex.com/StanfordBDHG/XCTestExtensions)
[](https://swiftpackageindex.com/StanfordBDHG/XCTestExtensions)
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](https://swiftpackageindex.com/StanfordBDHG/XCTestExtensions/documentation/xctestextensions).
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](https://swiftpackageindex.com/StanfordBDHG/XCTestExtensions/documentation/xctestapp).
## Installation
The project can be added to your Xcode project or Swift Package using the [Swift Package Manager](https://github.com/apple/swift-package-manager).
**Xcode:** For an Xcode project, follow the instructions on [Adding package dependencies to your app](https://developer.apple.com/documentation/xcode/adding-package-dependencies-to-your-app).
**Swift Package:** You can follow the [Swift Package Manager documentation about defining dependencies](https://github.com/apple/swift-package-manager/blob/main/Documentation/Usage.md#defining-dependencies) to add this project as a dependency to your Swift Package.
## License
This project is licensed under the MIT License. See [Licenses](https://github.com/StanfordBDHG/XCTestExtensions/tree/main/LICENSES) for more information.
## Contributors
This project is developed as part of the Stanford Byers Center for Biodesign at Stanford University.
See [CONTRIBUTORS.md](https://github.com/StanfordBDHG/XCTestExtensions/tree/main/CONTRIBUTORS.md) for a full list of all XCTestExtensions contributors.

