Files
jcl/run_tests.py
David Rousselie 0f4424b68a Add disco#info and disco#items to exposed features
darcs-hash:20070711061416-86b55-7a6af815498a22765c5abaa5f2bac891c0343f1a.gz
2007-07-11 08:14:16 +02:00

72 lines
2.0 KiB
Python

# -*- coding: utf-8 -*-
##
## run_tests.py
## Login : David Rousselie <dax@happycoders.org>
## Started on Wed Aug 9 21:37:35 2006 David Rousselie
## $Id$
##
## Copyright (C) 2006 David Rousselie
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
##
import coverage
coverage.erase()
coverage.start()
import logging
import unittest
import sys
sys.path.append("src")
reload(sys)
sys.setdefaultencoding('utf8')
del sys.setdefaultencoding
import jcl.tests
import jcl.jabber.tests
def suite():
return jcl.tests.suite()
if __name__ == '__main__':
logger = logging.getLogger()
logger.addHandler(logging.StreamHandler())
logger.setLevel(logging.CRITICAL)
unittest.main(defaultTest='suite')
coverage.stop()
coverage.analysis(jcl.jabber)
coverage.analysis(jcl.jabber.component)
coverage.analysis(jcl.jabber.feeder)
coverage.analysis(jcl.jabber.message)
coverage.analysis(jcl.jabber.presence)
coverage.analysis(jcl.jabber.disco)
coverage.analysis(jcl.lang)
coverage.analysis(jcl.runner)
coverage.analysis(jcl.model)
coverage.analysis(jcl.model.account)
coverage.report([jcl.jabber,
jcl.jabber.component,
jcl.jabber.feeder,
jcl.jabber.message,
jcl.jabber.presence,
jcl.jabber.disco,
jcl.lang,
jcl.runner,
jcl.model,
jcl.model.account])