← Back to team overview

sikuli-driver team mailing list archive

[Question #176005]: Nice unit test runner with html output

 

New question #176005 on Sikuli:
https://answers.launchpad.net/sikuli/+question/176005

Just want to share with you nice runner that output an html result file.

http://tungwaiyip.info/software/HTMLTestRunner.html 


Your file now should look like 
======================
import unittest
import HTMLTestRunner

class BDTests(unittest.TestCase):

    def test_1
    def test_2

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.