Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/binarybirds/testify
Testify converts XCTest output into a proper structure (JSON, JUNIT, MD, GFM), or it'll miserably fail. 😉
https://github.com/binarybirds/testify
gfm json junit md swift swift-5 testing unit-testing xcode xctest xctest-linux xctestcase
Last synced: 2 months ago
JSON representation
Testify converts XCTest output into a proper structure (JSON, JUNIT, MD, GFM), or it'll miserably fail. 😉
- Host: GitHub
- URL: https://github.com/binarybirds/testify
- Owner: BinaryBirds
- License: mit
- Created: 2019-01-21T15:41:17.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2024-01-09T06:39:46.000Z (12 months ago)
- Last Synced: 2024-10-12T16:42:11.536Z (2 months ago)
- Topics: gfm, json, junit, md, swift, swift-5, testing, unit-testing, xcode, xctest, xctest-linux, xctestcase
- Language: Swift
- Homepage:
- Size: 348 KB
- Stars: 22
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Testify
Testify converts XCTest output into a proper structure (JSON, JUNIT, MD, GFM), or it'll miserably fail. 😉
## Installation
### Command line utility
You can use the command line utility to convert test results into JSON, JUNIT, MD and GFM on the fly.
```
git clone https://github.com/BinaryBirds/Testify.git && cd Testify
make install
which testify
```### Mint
To install BinaryBirds/Testify via [Mint](https://github.com/yonaskolb/Mint), simply use:
```sh
$ mint run BinaryBirds/Testify
```## Usage
In your project folder run:
* for JSON format: `swift test | testify json`
* for JUNIT format: `swift test | testify junit`
* for MD format: `swift test | testify md`
* for GFM format: `swift test | testify gfm`You can just use the [Swift Package Manager](https://theswiftdev.com/2017/11/09/swift-package-manager-tutorial/) as usual:
```swift
.package(url: "https://github.com/binarybirds/testify", from: "1.1.2"),
```⚠️ Don't forget to add "Testify" to your target as a dependency!
```swift
import Testifylet suite = TestSuite.parse("test-output-string")