From 14c2aca5338b9f18daff6d5898d1a4bdede1e285 Mon Sep 17 00:00:00 2001 From: Carlos Mastalli <carlos.mastalli@laas.fr> Date: Wed, 6 Mar 2019 13:25:43 +0100 Subject: [PATCH] [unittest] Removed test_all since it's overkill right now --- .gitlab-ci.yml | 2 +- unittest/test_all.py | 21 --------------------- 2 files changed, 1 insertion(+), 22 deletions(-) delete mode 100644 unittest/test_all.py diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2a4326f..00c68db 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,4 +2,4 @@ image: gepgitlab.laas.fr:4567/Gepetto/example-robot-data test: script: - - cd unittest && python test_all.py + - cd unittest && python test_load.py diff --git a/unittest/test_all.py b/unittest/test_all.py deleted file mode 100644 index 8470ace..0000000 --- a/unittest/test_all.py +++ /dev/null @@ -1,21 +0,0 @@ -import sys -import unittest - -testmodules = [ - 'test_load', -] - -suite = unittest.TestSuite() - -for t in testmodules: - try: - # If the module defines a suite() function, call it to get the suite. - mod = __import__(t, globals(), locals(), ['suite']) - suitefn = getattr(mod, 'suite') - suite.addTest(suitefn()) - except (ImportError, AttributeError): - # else, just load all the test cases from the module. - suite.addTest(unittest.defaultTestLoader.loadTestsFromName(t)) - -result = unittest.TextTestRunner().run(suite) -sys.exit(len(result.errors) + len(result.failures)) -- GitLab