tcunit / TcUnit-Runner

Program that makes it possible to automate runs of TcUnit unit tests
Other
34 stars 17 forks source link

Expected and Actual values in Error Details #17

Closed kumaraswamygaviyappa closed 3 years ago

kumaraswamygaviyappa commented 3 years ago

After Jenkins job is executed, is that possible to add Expected and Actual values in Error Details which shows only Error Message.

sagatowski commented 3 years ago

Hi @kumaraswamygaviyappa ! I'm not sure I follow along. The Expected and Actual values + Error message is already written to the xUnit-XML file, so the xUnit Jenkins-plugin should be able to see it?

kumaraswamygaviyappa commented 3 years ago

Hi @sagatowski , Yes, in my opinion, its good to see the Expected and Actual values + Error message in Test Result page of Jenkins job.

sagatowski commented 3 years ago

Hey!

What message you see in the test result page of Jenkins is not decided by TcUnit, but by which plugin you use. TcUnit reports all data in the XML-file, so Jenkins can access it. Then what data is presented in Jenkis is not decided by TcUnit.

kumaraswamygaviyappa commented 3 years ago

Hi @sagatowski ,

Thanks for the explanation. Is that possible to update XML file with Expected and Actual values + Error message. I could see only message in the xml file. Am i missing something? :( image

sagatowski commented 3 years ago

Hi @kumaraswamygaviyappa! Ah yes, you are right! Now I remember. I created this picture to show what TcUnit+TcUnit-Runner supports: https://user-images.githubusercontent.com/33381702/71117164-e7dd1d80-21d5-11ea-840a-9aebdd3dbb72.png This is according to the xUnit XML standard: https://wiki.yoctoproject.org/wiki/QA/xUnit_XML_Template

In this standard, the assert actual and expected values are not included for some reason!