Test Metadata: Twisted Trial


#1

Not sure if it HAS metadata, but it’s based off python’s unittest.

Is adding support for Twisted Trial be useful?

https://twistedmatrix.com/trac/wiki/TwistedTrial


#2

JUnit-style XML is a de-facto standard for producing test metadata, so we would ask you to see if you can produce that with your test runner.


#3

https://circleci.com/gh/drazisil/p2pool/141

Got this working, thank you for the tip.

The code for others who might be interested:

Install python-subunit && junitxml (I used pip)

circle.yml

  override:
    - mkdir -p $CIRCLE_TEST_REPORTS/junit
    - trial --reporter=subunit p2pool | subunit-1to2  | subunit2junitxml --no-passthrough --output-to=$CIRCLE_TEST_REPORTS/junit/results.xml

Credit to https://oxygene.sk/2012/10/twisted-trial-and-jenkins/ and https://stackoverflow.com/a/16866230/335583


#4

Thanks a lot for sharing this!


#5