Python HTMLTestRunner not generating report

前端 未结 3 1786
闹比i
闹比i 2021-01-17 00:55

I am having an problem in generating html report with HTMLTestRunner. I have created a test suite in a file called TestsSuite.py. Here\'s the code excerpt:

i         


        
3条回答
  •  情歌与酒
    2021-01-17 01:47

    HTMLTestRunner doesn't seem to be actively supported anymore. I did see a post on Github where when HTMLTestRunner creator tungwaiyip mentions that he doesn't have time to support HTMLTestRunner and he asks if others would continue with it's development.

    In that conversation two individuals mention changes they made to the file to get it to work for them. The post is at:

    https://github.com/tungwaiyip/HTMLTestRunner/issues/1

    I made that changes detailed in locus2k's comment on Sep 28 and that helped me, although some of his line numbers are off. I also had to make some edits to the file myself to get things working for me such as:

    • line 642 used has_key which needed to be changed to 'if not cls in rmap:'
    • line 687 encoded a string which errors on stream.write(). Changed to not encode the string.

提交回复
热议问题