#junit #circle-ci #report #fix #stdout #integration #failure

app circleci-junit-fix

Fixes junit reports to have proper integration with CircleCI

4 releases

0.2.3 Jun 25, 2024
0.2.1 Aug 1, 2022
0.2.0 Jul 29, 2022
0.1.0 Feb 15, 2022

#264 in Testing

Download history 5/week @ 2024-08-22 4/week @ 2024-08-29 4/week @ 2024-09-05 16/week @ 2024-09-12 9/week @ 2024-09-19 10/week @ 2024-09-26 6/week @ 2024-10-03 18/week @ 2024-10-10 26/week @ 2024-10-17 3/week @ 2024-10-24 30/week @ 2024-10-31 9/week @ 2024-11-07 1/week @ 2024-11-14 5/week @ 2024-11-21 102/week @ 2024-11-28 379/week @ 2024-12-05

487 downloads per month

MIT license

6KB
92 lines

circleci-junit-fix

CircleCI supports rendering test failures through the use of JUnit files, but it only supports a subset of features.

One such feature is failure test outputs. The spec suggests that stdout and stderr contents be captured and added to the <system-out> and <system-err> elements respectively. CircleCI instead only reads the data from the <failure message="..."> attribute only.

Installation

With Cargo

cargo install circleci-junit-fix --locked --version 0.2.0

With Prebuilt Binary

curl -sSL https://github.com/conradludgate/circleci-junit-fix/releases/download/v0.2.0/circleci-junit-fix-v0.2.0-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=/usr/bin

Usage

cat path/to/junit/report.xml | circleci-junit-fix > fixed-report.xml

Dependencies

~1.5MB
~21K SLoC