BinaryBirds/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 testifyMint
To install BinaryBirds/Testify via Mint, simply use:
$ mint run BinaryBirds/TestifyUsage
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 as usual:
.package(url: "https://github.com/binarybirds/testify", from: "1.2.0"),β οΈ Don't forget to add "Testify" to your target as a dependency!
import Testify
let suite = TestSuite.parse("test-output-string")Package Metadata
Repository: BinaryBirds/Testify
Stars: 26
Forks: 5
Open issues: 0
Default branch: main
Primary language: swift
License: MIT
Topics: gfm, json, junit, md, swift, swift-5, testing, unit-testing, xcode, xctest, xctest-linux, xctestcase
README: README.md