File: __init__.py

package info (click to toggle)
pyjunitxml 0.7-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 224 kB
  • sloc: python: 830; makefile: 7
file content (24 lines) | stat: -rw-r--r-- 615 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#
#  junitxml: extensions to Python unittest to get output junitxml
#  Copyright (C) 2009 Robert Collins <robertc@robertcollins.net>
#
#  Copying permitted under the LGPL-3 licence, included with this library.

import unittest

from junitxml.tests import (
    test_junitxml,
    test_main,
    test_runner
    )

def test_suite():
    return unittest.TestLoader().loadTestsFromNames([
        'junitxml.tests.test_junitxml',
        'junitxml.tests.test_main',
        'junitxml.tests.test_runner'
        ])

if __name__ == '__main__':
    suite = test_suite()
    unittest.TextTestRunner(verbosity=2).run(suite)