Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: about 2 hours ago
JSON representation

Extensions for commonly used functionality in UI tests using XCTest.

Awesome Lists containing this project

README

        

# XCTestExtensions

[![Build and Test](https://github.com/StanfordBDHG/XCTestExtensions/actions/workflows/build-and-test.yml/badge.svg)](https://github.com/StanfordBDHG/XCTestExtensions/actions/workflows/build-and-test.yml)
[![codecov](https://codecov.io/gh/StanfordBDHG/XCTestExtensions/branch/main/graph/badge.svg?token=dF75iJxl45)](https://codecov.io/gh/StanfordBDHG/XCTestExtensions)
[![DOI](https://zenodo.org/badge/597215549.svg)](https://zenodo.org/badge/latestdoi/597215549)
[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FStanfordBDHG%2FXCTestExtensions%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/StanfordBDHG/XCTestExtensions)
[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FStanfordBDHG%2FXCTestExtensions%2Fbadge%3Ftype%3Dplatforms)](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.

![Stanford Byers Center for Biodesign Logo](https://raw.githubusercontent.com/StanfordBDHG/.github/main/assets/biodesign-footer-light.png#gh-light-mode-only)
![Stanford Byers Center for Biodesign Logo](https://raw.githubusercontent.com/StanfordBDHG/.github/main/assets/biodesign-footer-dark.png#gh-dark-mode-only)