diff --git a/devices/.stestr.conf b/devices/.stestr.conf index ddc59860d5117ed8bdc44faeea1d893760b5520e..07147c8697683f270e9388da8b914c20cb8e4c45 100644 --- a/devices/.stestr.conf +++ b/devices/.stestr.conf @@ -1,3 +1,3 @@ [DEFAULT] -test_path=./test +test_path=${TESTS_DIR:-./test} top_dir=./ diff --git a/devices/integration_test/README.md b/devices/integration_test/README.md new file mode 100644 index 0000000000000000000000000000000000000000..e6bb8214902a4e1cb11f9e29c9c4534e25b77a67 --- /dev/null +++ b/devices/integration_test/README.md @@ -0,0 +1,3 @@ +# Integration tests + +**Warning running these tests will make changes to your local system** \ No newline at end of file diff --git a/devices/integration_test/__init__.py b/devices/integration_test/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/devices/integration_test/base.py b/devices/integration_test/base.py new file mode 100644 index 0000000000000000000000000000000000000000..92601ec2d440753ae7f7be22fcbfad0c5028875c --- /dev/null +++ b/devices/integration_test/base.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +# +# This file is part of the LOFAR 2.0 Station Software +# +# +# +# Distributed under the terms of the APACHE license. +# See LICENSE.txt for more info. + +import unittest +import testscenarios + + +class BaseIntegrationTestCase(testscenarios.WithScenarios, unittest.TestCase): + """Integration test base class.""" + + def setUp(self): + super().setUp() + + +class IntegrationTestCase(BaseIntegrationTestCase): + """Integration test case base class for all unit tests.""" + + def setUp(self): + super().setUp() diff --git a/devices/tox.ini b/devices/tox.ini index 18c6cda38751d7bc447e8fb23d92e63b64288ddb..29fed5a88b9647ed97e4099f0c6f655b2da6ce01 100644 --- a/devices/tox.ini +++ b/devices/tox.ini @@ -17,6 +17,12 @@ deps = -r{toxinidir}/test-requirements.txt -r{toxinidir}/../docker-compose/lofar-device-base/lofar-requirements.txt commands = stestr run {posargs} +[testenv:integration] +; Warning running integration tests will make changes to your docker system! +setenv = TESTS_DIR=./integration_test +commands = + stestr run --serial + ; TODO(Corne): Integrate Hacking to customize pep8 rules [testenv:pep8] commands =