Skip to content
Snippets Groups Projects
Commit ee6453f5 authored by Corné Lukken's avatar Corné Lukken
Browse files

L2SS-240: Configure tox for both tests directories

parent 577ff618
No related branches found
No related tags found
1 merge request!89Resolve L2SS-240 "Integration testing"
[DEFAULT] [DEFAULT]
test_path=./test test_path=${TESTS_DIR:-./test}
top_dir=./ top_dir=./
# Integration tests
**Warning running these tests will make changes to your local system**
\ No newline at end of file
# -*- 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()
...@@ -17,6 +17,12 @@ deps = -r{toxinidir}/test-requirements.txt ...@@ -17,6 +17,12 @@ deps = -r{toxinidir}/test-requirements.txt
-r{toxinidir}/../docker-compose/lofar-device-base/lofar-requirements.txt -r{toxinidir}/../docker-compose/lofar-device-base/lofar-requirements.txt
commands = stestr run {posargs} 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 ; TODO(Corne): Integrate Hacking to customize pep8 rules
[testenv:pep8] [testenv:pep8]
commands = commands =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment