op-test icon indicating copy to clipboard operation
op-test copied to clipboard

op-test framework test report in html?

Open sathnaga opened this issue 7 years ago • 4 comments

It would be helpful if op-test framework can generate html test reports, something in similar lines as below report, sl.no|test name|status|time taken|detail(link to detailed result)

Some Sample report: http://tungwaiyip.info/software/sample_test_report.html

sathnaga avatar Feb 21 '18 13:02 sathnaga

Looks like there is a external runner, http://tungwaiyip.info/software/HTMLTestRunner.html

http://tungwaiyip.info/software/HTMLTestRunner_0_8_2/HTMLTestRunner.py, we might need similar one implemented inside op-test framework.

sathnaga avatar Feb 21 '18 13:02 sathnaga

Could we do it like we do the XMLTestRunner today, use it if available but fallback if not?

I also wonder if we can get multiple report formats out...

ghost avatar Feb 22 '18 03:02 ghost

yes, that will do, we can add those packages to requirements.txt for user aware. how about having --html{,xml,...}-report in command line option through which we can demand framework to generate {html,xml...} report?

looks like we have html-testRunner implements, HtmlTestRunner as like xmlrunner

screenshot_20180222_212713

Looks like multiple report format is not possible by unittest framework at the moment(AFAIK), but we can think of an alternative option of converting a test report from one format to another once the test done, by that we can support multiple report formats, not sure how much of it is feasible and a good soultion though...

sathnaga avatar Feb 22 '18 16:02 sathnaga

Yeah, perhaps we have to look at upstream python unittest and see if making the changes there is a better idea than us hacking together things.

ghost avatar Jun 08 '18 03:06 ghost