question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Junit result xml file output is corrupted

See original GitHub issue

Describe the bug

  • JUnit output is not valid.
  • It has an extra line at the top of the xml file: 'NoneType' object is not iterable

To Reproduce Steps to reproduce the behavior:

  1. Jenkins pipeline ran the command for checkov to scan which was checkov -d terraform --no-guide -o junitxml 2.Jenkins error message on the build results.xml.[failed-to-read]
  2. Saw that there is an extra line in the Junit xml file 'NoneType' object is not iterable

Expected behavior JUnit xml result should a valid xml file

Desktop (please complete the following information):

  • OS: Ubuntu 20.04
  • Checkov Version2.0.604

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
gruebelcommented, Feb 7, 2022

@kaiyuanlim great thanks for confirming 👍

0reactions
kaiyuanlimcommented, Feb 7, 2022

Update: Please close this issue. Seems like it has been fixed

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to get hudson to parse JUnit test output XML
The problem is, whenever I tell ant to publish the JUnit test results, and then point it to either the raw test result...
Read more >
Jenkins fails to read Junit xml for publishing Junit Test Results
I am using Jenkins for CI, and as such, I am creating a junit xml file after my test suites executes to post...
Read more >
JUnit feature should be able to parse JUnit.xml files with large ...
Problem. As a developer (Sasha) when a JUnit XML file is created by my pipeline that contains very large system-output nodes (8MB +), ......
Read more >
JUnit Parser task in Bamboo shows 'Failed to parse test result ...
As the error states, Bamboo is unable to parse the test file. This may be caused by: Incorrect XML format; Invalid characters in...
Read more >
XML report encoding - Google Groups
I use a Ant task to run tests and convert to junit report. Conversion ... corrupted." ... Which files are you referring to,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found