summaryrefslogtreecommitdiffstats
path: root/ansible_collections/amazon/aws/tox.ini
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 12:04:41 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 12:04:41 +0000
commit975f66f2eebe9dadba04f275774d4ab83f74cf25 (patch)
tree89bd26a93aaae6a25749145b7e4bca4a1e75b2be /ansible_collections/amazon/aws/tox.ini
parentInitial commit. (diff)
downloadansible-975f66f2eebe9dadba04f275774d4ab83f74cf25.tar.xz
ansible-975f66f2eebe9dadba04f275774d4ab83f74cf25.zip
Adding upstream version 7.7.0+dfsg.upstream/7.7.0+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--ansible_collections/amazon/aws/tox.ini27
1 files changed, 27 insertions, 0 deletions
diff --git a/ansible_collections/amazon/aws/tox.ini b/ansible_collections/amazon/aws/tox.ini
new file mode 100644
index 000000000..292a97001
--- /dev/null
+++ b/ansible_collections/amazon/aws/tox.ini
@@ -0,0 +1,27 @@
+[tox]
+skipsdist=True
+envlist = clean,ansible{2.12,2.13}-py{38,39,310}-{with_constraints,without_constraints}
+
+[testenv]
+deps =
+ pytest
+ pytest-cov
+ ansible2.12: ansible-core>2.12,<2.13
+ ansible2.13: ansible-core>2.13,<2.14
+ !ansible2.12-!ansible2.13: ansible-core
+ pytest-ansible-units
+ -rtest-requirements.txt
+ with_constraints: -rtests/unit/constraints.txt
+commands = pytest --cov-report html --cov plugins/callback --cov plugins/inventory --cov plugins/lookup --cov plugins/module_utils --cov plugins/modules plugins {posargs:tests/}
+
+[testenv:clean]
+deps = coverage
+skip_install = true
+commands = coverage erase
+
+[testenv:complexity-report]
+deps =
+ # See: https://github.com/lordmauve/flake8-html/issues/30
+ flake8>=3.3.0,<5.0.0'
+ flake8-html
+commands = -flake8 --select C90 --max-complexity 10 --format=html --htmldir={posargs} plugins