File: testrun.py

package info (click to toggle)
lodju 2.2-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 456 kB
  • ctags: 814
  • sloc: python: 4,698; ansic: 139; makefile: 64; sh: 21
file content (11 lines) | stat: -rw-r--r-- 286 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
import pygtk
pygtk.require("2.0")
import unittest
import os
 
suite = unittest.TestSuite()
for n in filter(lambda fn: fn[-8:] == "Tests.py", os.listdir(".")):
    suite.addTest(unittest.defaultTestLoader.loadTestsFromName(n[:-3]))
 
runner = unittest.TextTestRunner()
runner.run(suite)