tasty-jenkins-xml: Render tasty output to XML for Jenkins (ingredient transformer)

[ bsd3, library, testing ] [ Propose Tags ]

A tasty ingredient transformer (meaning consoleTestReporter or any other ingredient can run as well) to output test results in XML, using the Ant schema. This XML can be consumed by the Jenkins continuous integration framework.


[Skip to Readme]

Modules

[Index]

Flags

Manual Flags

NameDescriptionDefault
pedantic

Pass additional warning flags and -Werror to GHC.

Disabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.2.0.0
Change log CHANGELOG.md
Dependencies base (>=4 && <5), tasty (>=0.10 && <0.12), tasty-ant-xml (>=1.0 && <1.1) [details]
License BSD-3-Clause
Copyright (c) 2017 Ixperta Solutions s.r.o.
Author Ixcom Core Team
Maintainer ixcom-core@ixperta.com
Category Testing
Home page https://github.com/IxpertaSolutions/tasty-jenkins-xml#readme
Bug tracker https://github.com/IxpertaSolutions/tasty-jenkins-xml/issues
Source repo head: git clone https://github.com/IxpertaSolutions/tasty-jenkins-xml
Uploaded by TomasJanousek at 2017-03-04T11:23:39Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 1607 total (6 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2017-03-04 [all 1 reports]

Readme for tasty-jenkins-xml-0.1.0.0

[back to package description]

tasty-jenkins-xml

Haskell Programming Language BSD3 License

Hackage Hackage Dependencies Build

Description

An ingredient transformer version of tasty-ant-xml.

This package implements a tasty ingredient transformer that makes it possible to output test results as JUnit XML in addition to other output ingredient, e.g. a consoleTestReporter. Internally it invokes the tasty-ant-xml ingredient.

To be practically useful, it implements two additions:

  • --jxml alias for --xml for test-framework compatibility,

  • --exit-success to distinguish between failed and unstable builds in Jenkins CI.

Usage

Example:

import Test.Tasty
import Test.Tasty.Runners.JenkinsXML (jenkinsXMLTransformer)

main :: IO ()
main = defaultMainWithIngredients ingredients tests
  where
    ingredients = [listingTests, jenkinsXMLTransformer [consoleTestReporter]]

Alternatively jenkinsXMLTransformer may be applied directly to defaultIngredients.

For comparison, here's a main that uses tasty-ant-xml instead (and can't output to console and XML at the same time):

import Test.Tasty
import Test.Tasty.Runners.AntXML (antXMLRunner)

main :: IO ()
main = defaultMainWithIngredients ingredients tests
  where
    ingredients = [listingTests, antXMLRunner, consoleTestReporter]

Contributing

Contributions are welcome! Documentation, examples, code, and feedback - they all help.

License

The BSD 3-Clause License, see LICENSE file for details.