Displaying custom Summary at the end of Pytest run

Viewed 543

I am trying to add a custom display of data of the test runs that occured during my pytest execution. Instead of something like :

--------------- 3 passed in 30 seconds ----------------

at the end of the test, I would want to display a tabular representaion of the test runs with my own metrics. I have the metrics recorded in a variable which is in JSON format.

How could I show this JSON at the end of pytest execution in tabular format something like this:

--------------- 3 passed in 30 seconds ----------------

Test Name     Stages      Date_Time     Some_Paramter_1    Some_Parameter_2

  A

  B

  C

All of the data required for the above (the test Name, stages, parameters) I have recorded in a JSON object.

Thanks,

I have tried some reporting tools, but they don't exactly give me the kind of custom results I want. Like Tesults.

0 Answers
Related