You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The test program contains no actual tests but it serves as a stub for future development.
This report was created by gtest with option --gtest_output=xml:test_report.xml
Expected behavior
Expect the report should be parsed without error.
Actual behavior
xUnit sensor throws exception and could not continue to parse other reports.
Known workarounds
Perhaps adding a null check at cxx-sensors/src/main/java/org/sonar/cxx/sensors/tests/xunit/XunitReportParser.java:61 may fix this problem but I haven't verified it yet.
do {
parseTestSuiteTag(testSuiteCursor);
} while (testSuiteCursor.getNext() != null);
LOG file
11:37:56.061 INFO: Scanner found '3' report files
11:37:56.061 INFO: Parser will parse '3' report files
11:37:56.075 INFO: Processing report '/var/jenkins_home/workspace/playground-build-test-scan/report/blank_test_report.xml'
11:37:56.075 DEBUG: Transformation skipped: no xslt given
11:37:56.110 ERROR: Cannot feed the data into SonarQube, details: 'javax.xml.stream.XMLStreamException: ParseError at [row,col]:[4,1]
Message: Can not call 'getAttributeValue(): cursor does not point to a valid node (curr event [null]; cursor state CLOSED)'
11:37:56.111 INFO: Sensor C++ (Community) XunitSensor [cxx] (done) | time=79ms
Related information
cxx plugin version? 1.1.0
SonarQube version? 7.4
The text was updated successfully, but these errors were encountered:
Description
When an xUnit test report does not have any testsuite tag, xUnit sensor throws exception and could not continue to parse other reports.
Steps to reproduce the problem
Analyze a test report as follows:
The test program contains no actual tests but it serves as a stub for future development.
This report was created by gtest with option --gtest_output=xml:test_report.xml
Expected behavior
Expect the report should be parsed without error.
Actual behavior
xUnit sensor throws exception and could not continue to parse other reports.
Known workarounds
Perhaps adding a null check at cxx-sensors/src/main/java/org/sonar/cxx/sensors/tests/xunit/XunitReportParser.java:61 may fix this problem but I haven't verified it yet.
LOG file
Related information
The text was updated successfully, but these errors were encountered: