Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
JUnitReporter does not report failed test results when the test case throws an exception #1072
Comments
|
Hi @StJabin |
|
Hi Iwasylow, thanks for replying! I've repeated the test with UTPLSQL v3.1.10.3349. It shows the same behavior. This is the test case: PROCEDURE raiseExc Output when I use default reporter (ut_documentation_reporter):
Output when I use ut_junit_reporter:
Thanks, if you can have a look on it! |
|
Seems that error/failure reporting in JUnit reporter are mutually exclusive today. |
Information about utPLSQL and Database version:
DB Version: 12.2.0.1.0
UT Version: v3.1.6.2735
JUnitReporter is activated and jenkins job is used to run multiple test cases.
If a test case fails, JUnitReporter reports the exception stack in the logfile. But all failed test statements (ut.expect...) are not part of the reporter file. That makes it difficult to analyze the problem.
If you run the same test case from HORA the exception stack is reported and all failed test statements, like:
"ORA-06512: at "METI2TDS.TSTUTGLOSQLGLO", line 376
ORA-06512: at line 6
Actual: 4 (number) was expected to equal: 5 (number)
at "METI2TDS.TSTUTGLOSQLGLO.TESTGLOSQL3", line 373"
In JUnitReporter just the first two lines are visible.