dogtail-devel [Bug 349163] utility function to run unittests, with optional XML output



Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=349163
 dogtail | Framework | Ver: CVS HEAD





------- Comment #1 from Frederic Peters  2006-07-29 12:45 UTC -------
Created an attachment (id=69871)
 --> (http://bugzilla.gnome.org/attachment.cgi?id=69871&action=view)
dogtail.utils.run_tests and XmlTestRunner

This patch incorporates XMLTestRunner and adds an utility function to
dogtail/utils.py to replace call to unittest.main().  This allows to add
a new and optional --xml arg.

Dogtail tests should then use

from dogtail.utils import run_tests

if __name__ == '__main__':
    run_tests()

instead of

import unittest

if __name__ == '__main__':
    unittest.main()


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the QA contact for the bug.
You are watching the assignee for the bug.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]