Testify converts XCTest output into a proper structure (JSON, JUNIT, MD, GFM), or it'll miserably fail. 😉
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
To install BinaryBirds/Testify via Mint, simply use:
$ mint run BinaryBirds/Testify
In your project folder run:
swift test | testify json
swift test | testify junit
swift test | testify md
swift test | testify gfm
You can just use the Swift Package Manager as usual:
.package(url: "https://github.com/binarybirds/testify", from: "1.1.2"),
⚠️ Don't forget to add "Testify" to your target as a dependency!
import Testify
let suite = TestSuite.parse("test-output-string")
link |
Stars: 20 |
Last commit: 15 weeks ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics