Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It does not work with Python 3 #16

Open
atomar09 opened this issue Jun 7, 2016 · 4 comments
Open

It does not work with Python 3 #16

atomar09 opened this issue Jun 7, 2016 · 4 comments

Comments

@atomar09
Copy link

atomar09 commented Jun 7, 2016

Hi,

I tried it with Python 3.x but it does not work.
Could you please make it Python 3 compatible?

It would be really helpful.
I really appreciate your help.

Thanks

@dash0002
Copy link

dash0002 commented Jun 7, 2016

@atomar09 You'll want to use https://github.com/dash0002/HTMLTestRunner instead.

@ItsPavan
Copy link

@dash0002 Please find the attached traceback and provide me a solution.

ETraceback (most recent call last):
File "C:\Users\PKumar\Desktop\my_docs\MB_framework.py", line 28, in
HTMLTestRunner.main()
File "C:\Python34\lib\unittest\main.py", line 93, in init
self.runTests()
File "C:\Python34\HTMLTestRunner.py", line 727, in runTests
TestProgram.runTests(self)
File "C:\Python34\lib\unittest\main.py", line 244, in runTests
self.result = testRunner.run(self.test)
File "C:\Python34\HTMLTestRunner.py", line 539, in run
self.generateReport(test, result)
File "C:\Python34\HTMLTestRunner.py", line 587, in generateReport
report = self._generate_report(result)
File "C:\Python34\HTMLTestRunner.py", line 647, in _generate_report
cid = 'c%s' % (cid+1),
KeyError: 'skip

@kavitabarfa
Copy link

For python 3.x follow the steps:

  1. pip install html-testRunner
  2. import HtmlTestRunner (but not HTMLTestRunner)

Note: In version 3 they have changed the package name from HTMLTestRunner to HTMLTestRunner.

@ravikiranb36
Copy link

ravikiranb36 commented Apr 9, 2021

For python 3.X install HTMLTestRunner-rv
pip install htmltestrunner-rv

from HTMLTestRunner import HTMLTestRunner
runner = HTMLTestRunner()
runner.run(suite)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants