Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #2974 - Invalid Chars in JUnit XML #3013

Closed
wants to merge 1 commit into from

Conversation

mkasberg
Copy link
Contributor

JUnit XML (produced with --log-junit) is invalid (and won't be opened by
some programs) if it contains invalid XML characters in the
node. Fix this by sanitizing text before adding it to the XML.

This fixes #2974.

JUnit XML (produced with --log-junit) is invalid (and won't be opened by
some programs) if it contains invalid XML characters in the <system-out>
node. Fix this by sanitizing text before adding it to the XML.
@codecov-io
Copy link

codecov-io commented Feb 16, 2018

Codecov Report

Merging #3013 into master will not change coverage.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #3013   +/-   ##
=========================================
  Coverage     80.43%   80.43%           
  Complexity     2827     2827           
=========================================
  Files           107      107           
  Lines          7436     7436           
=========================================
  Hits           5981     5981           
  Misses         1455     1455
Impacted Files Coverage Δ Complexity Δ
src/Util/Log/JUnit.php 91.3% <0%> (ø) 34 <0> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c2442e8...034f245. Read the comment docs.

@sebastianbergmann
Copy link
Owner

Merged manually, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

phpunit --log-junit generates invalid xml file when test output contains binary data
3 participants