Reply To: Is there a built-in way in OSVVM to detect build failure without parsing logs?
Why OSVVM™? › Forums › OSVVM › Is there a built-in way in OSVVM to detect build failure without parsing logs? › Reply To: Is there a built-in way in OSVVM to detect build failure without parsing logs?
Hi Amine,
If you are still in Tcl, there are a number of variables you can check with the build status. Currently these are not documented, but they should be. Lets start here:
::osvvm::ReportBuildName – Name of Build
::osvvm::BuildStatus – PASSED / FAILED
::osvvm::TestCasesPassed
::osvvm::TestCasesFailed
::osvvm::TestCasesSkipped
::osvvm::ReportBuildErrorCode – 0 if passed. > 0 if errors
::osvvm::ReportAnalyzeErrorCount
::osvvm::ReportSimulateErrorCount
If you are not in Tcl, you will have to get them from either the Junit XML file. The Yaml file is unprocessed – ie: it provides individual test passed/failed, but not whether the entire build has passed or failed. Maybe OSVVM should be keeping a running count of these things so they are available in Tcl and then Yaml without the reporting.
The Tcl is becoming a project of its own. It is currently around 15K lines.
Best Regards,
Jim