Skip to content

showbie/DangerSwiftJUnit

 
 

Repository files navigation

DangerSwiftJUnit

Danger-Swift plugin that parses a JUnit test report and provides automatic reporting and build failures if any reports include failed tests.

Most test runners have the ability to generated a test report conforming to the JUnit XML standard. This plugin can parse these files, extract all passed, failed, error'd, or skipped tests.

Migrated to Swift from danger-junit. Props to Orta Therox and contributers for all their hard work on this.

How Does It Look?

image

Install DangerSwiftJUnit

  • Add to your Package.swift:
let package = Package(
    ...
    products: [
        ...
    ],
    dependencies: [
        ...
        // Danger Plugins
        .package(url: "https://github.com/colinhumber/DangerSwiftJUnit", from: "1.0.0") // dev
        ...
    ],
    targets: [
        ...
    ]
)
  • Add the correct import to your Dangerfile.swift:
import DangerSwiftJUnit

let plugin = DangerSwiftJUnit()
try? plugin.parse("/path/to/report")
try? plugin.report()

Check out the plugin for more customization options.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 100.0%