summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorPhil Dawson <phil.dawson@codethink.co.uk>2019-02-13 15:20:37 +0000
committerbst-marge-bot <marge-bot@buildstream.build>2019-03-08 10:05:08 +0000
commit07194ad6e684594657d519acb5b3233a5e58f838 (patch)
treea4b401821a13d182d3f597bc449680a95e43f5ad /tox.ini
parent4359b50a851be0fe0202f06cf230ced921b2deff (diff)
downloadbuildstream-07194ad6e684594657d519acb5b3233a5e58f838.tar.gz
Allow testing of external plugins via toxphil/external-plugin-testing
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini31
1 files changed, 29 insertions, 2 deletions
diff --git a/tox.ini b/tox.ini
index 5057c7c99..3734bd6a6 100644
--- a/tox.ini
+++ b/tox.ini
@@ -8,17 +8,20 @@ skip_missing_interpreters = true
#
# Defaults for all environments
#
-# Anything specified here is iherited by the sections
+# Anything specified here is inherited by the sections
#
[testenv]
commands =
# Running with coverage reporting enabled
py{35,36,37}-!nocover: pytest --basetemp {envtmpdir} --cov=buildstream --cov-config .coveragerc {posargs}
+ py{35,36,37}-!nocover: pip3 install -e {toxinidir}
+ py{35,36,37}-!nocover: {envpython} {toxinidir}/tests/external_plugins.py {envtmpdir} --cov=buildstrean --cov-append {posargs}
py{35,36,37}-!nocover: mkdir -p .coverage-reports
py{35,36,37}-!nocover: mv {envtmpdir}/.coverage {toxinidir}/.coverage-reports/.coverage.{env:COVERAGE_PREFIX:}{envname}
-
# Running with coverage reporting disabled
py{35,36,37}-nocover: pytest --basetemp {envtmpdir} {posargs}
+ py{35,36,37}-nocover: pip3 install -e {toxinidir}
+ py{35,36,37}-nocover: {envpython} {toxinidir}/tests/external_plugins.py {envtmpdir} {posargs}
deps =
py{35,36,37}: -rrequirements/requirements.txt
py{35,36,37}: -rrequirements/dev-requirements.txt
@@ -49,6 +52,29 @@ whitelist_externals =
mkdir
#
+# Run only the tests that we use form external plugins
+#
+[testenv:external]
+commands =
+ {envpython} {toxinidir}/tests/external_plugins.py {envtmpdir} {posargs}
+deps =
+ -rrequirements/requirements.txt
+ -rrequirements/dev-requirements.txt
+ -rrequirements/plugin-requirements.txt
+
+
+#
+# Run only the tests which are defined by the BuildStream project
+#
+[testenv:internal]
+commands =
+ pytest --basetemp {envtmpdir} {posargs}
+deps =
+ -rrequirements/requirements.txt
+ -rrequirements/dev-requirements.txt
+ -rrequirements/plugin-requirements.txt
+
+#
# Coverage reporting
#
[testenv:coverage]
@@ -74,6 +100,7 @@ deps =
-rrequirements/dev-requirements.txt
-rrequirements/plugin-requirements.txt
+
#
# Building documentation
#