From 6588aaf72e57e93f71392edbf9c7285e6a9fa868 Mon Sep 17 00:00:00 2001 From: JensDiemer Date: Mon, 17 Oct 2011 10:26:27 +0200 Subject: [PATCH] add a run_all_tests.py for e.g.: coverage run creole/tests/run_all_tests.py --- creole/tests/__init__.py | 4 ++-- creole/tests/all_tests.py | 4 ++-- creole/tests/run_all_tests.py | 20 ++++++++++++++++++++ 3 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 creole/tests/run_all_tests.py diff --git a/creole/tests/__init__.py b/creole/tests/__init__.py index bb0f036..5956ae9 100644 --- a/creole/tests/__init__.py +++ b/creole/tests/__init__.py @@ -2,8 +2,8 @@ # coding: utf-8 """ - run all unittests - ~~~~~~~~~~~~~~~~~ + python-creole unittests + ~~~~~~~~~~~~~~~~~~~~~~~ :copyleft: 2008-2011 by python-creole team, see AUTHORS for more details. :license: GNU GPL v3 or above, see LICENSE for more details. diff --git a/creole/tests/all_tests.py b/creole/tests/all_tests.py index a8fbec6..9edb9ef 100644 --- a/creole/tests/all_tests.py +++ b/creole/tests/all_tests.py @@ -2,8 +2,8 @@ # coding: utf-8 """ - run all unittests - ~~~~~~~~~~~~~~~~~ + collects all existing unittests + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyleft: 2008-2011 by python-creole team, see AUTHORS for more details. :license: GNU GPL v3 or above, see LICENSE for more details. diff --git a/creole/tests/run_all_tests.py b/creole/tests/run_all_tests.py new file mode 100644 index 0000000..2d23106 --- /dev/null +++ b/creole/tests/run_all_tests.py @@ -0,0 +1,20 @@ +#!/usr/bin/env python +# coding: utf-8 + +""" + run all unittests + ~~~~~~~~~~~~~~~~~ + + for e.g.: + coverage run creole/tests/run_all_tests.py + + :copyleft: 2008-2011 by python-creole team, see AUTHORS for more details. + :license: GNU GPL v3 or above, see LICENSE for more details. +""" + +from creole.tests import run_all_doctests, run_unittests + + +if __name__ == '__main__': + run_all_doctests() + run_unittests()