sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #06442
Re: [Question #176005]: [HowTo] Nice unit test runner with html output
Question #176005 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/176005
Description changed to:
Just want to share with you nice runner that output an html result file.
http://tungwaiyip.info/software/HTMLTestRunner.html
Download and put the module in same folder as your .py file
Your test file now should look like
======================
import unittest
import HTMLTestRunner
class BDTests(unittest.TestCase):
def test_1
def test_2
suite = unittest.TestLoader().loadTestsFromTestCase(BDTests)
outfile = open("C:\Report.html", "w")
runner = HTMLTestRunner.HTMLTestRunner(stream=outfile, title='Test Report', description='This is demo' )
runner.run(suite)
==========================================
You need to run the tests as required when non default(UI) runner is
used -> Sikuli-IDE.bat -r smoketest.sikuli
Hope this helps
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.