← Back to team overview

sikuli-driver team mailing list archive

[Question #199493]: HTMLTestRunner Not producing a report

 

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

Hi,
I'm struggling with the documentation on the htmltestrunner.

When I run the test script in exlipse PyUnit produces results but HTMLTestRunner produces no output file in the root of C like it's suppose to.

Console says everything is running fine.

Sample of my code:

from sikuli.Sikuli import*
import HTMLTestRunner
import unittest

class test(unittest.TestCase)

def setUp

def tearDown

def test1

def test2

if __name__ == "__main__":
    #import sys;sys.argv = ['', 'Test.testName']
    unittest.main()
    HTMLTestRunner.main()
        
    suite = unittest.TestLoader().loadTestsFromTestCase(test)
    unittest.TextTestRunner(verbosity=2).run(suite)
    outfile = open("C:\Report.html", "w")
    runner = HTMLTestRunner.HTMLTestRunner(stream=outfile, title='Test Report', description='This is demo' )
    runner.run(suite)


Any direction or suggestions is appreciated.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.