Browse Source

Add separate env for functional tests

This is a first step. New functional tests and configuration
for executing them in CI will follow.

Change-Id: Ia78582bcd1be3b05c26be6223b9ee3c79c1aec0a
Grzegorz Grasza 5 months ago
parent
commit
dd2a2c528a
2 changed files with 10 additions and 1 deletions
  1. 1
    1
      .stestr.conf
  2. 9
    0
      tox.ini

+ 1
- 1
.stestr.conf View File

@@ -1,3 +1,3 @@
1 1
 [DEFAULT]
2
-test_path=${OS_TEST_PATH:-./novajoin/tests}
2
+test_path=${OS_TEST_PATH:-./novajoin/tests/unit}
3 3
 top_dir=./

+ 9
- 0
tox.ini View File

@@ -67,3 +67,12 @@ commands = sphinx-build -W -b html doc/source doc/build/html
67 67
 sitepackages = False
68 68
 envdir = {toxworkdir}/pep8
69 69
 commands = oslo-config-generator --config-file=files/novajoin-config-generator.conf
70
+
71
+[testenv:functional]
72
+basepython = python3
73
+deps = -r{toxinidir}/test-requirements.txt
74
+setenv =
75
+    OS_TEST_PATH={toxinidir}/novajoin/tests/functional
76
+commands =
77
+    /usr/bin/find . -type f -name "*.py[c|o]" -delete
78
+    stestr run --slowest {posargs}

Loading…
Cancel
Save