summaryrefslogtreecommitdiff
path: root/test/integration/README.md
diff options
context:
space:
mode:
authorGennady Trafimenkov <gennady.trafimenkov@gmail.com>2016-09-01 03:25:53 +0400
committerMichael Scherer <mscherer@users.noreply.github.com>2016-09-01 01:25:53 +0200
commit2e857cfafd009d09ecd582a819f11d7073780b4a (patch)
tree47a4a6e00e55b8ba59cdf9d910b75ff934dc62c6 /test/integration/README.md
parent6e65ebda264c8654cdc6d7ac96dab95430e1f7e8 (diff)
downloadansible-2e857cfafd009d09ecd582a819f11d7073780b4a.tar.gz
Add mention of integration tests in Docker containers (#16661)
It is quite convinient and easy to run integration tests in Docker containers. I hope it can motivate more people to write integration tests.
Diffstat (limited to 'test/integration/README.md')
-rw-r--r--test/integration/README.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/integration/README.md b/test/integration/README.md
index f30697b497..e5006f5fda 100644
--- a/test/integration/README.md
+++ b/test/integration/README.md
@@ -90,3 +90,24 @@ Define Windows inventory:
Run the tests:
make test_winrm
+
+Tests in Docker containers
+==========================
+
+It is possible to run tests in Docker containers.
+
+For example, to run test `test_ping` from non_destructive suite on Ubuntu 14.04 container:
+
+- go to the repository root
+- and execute `TARGET=ubuntu1404 MAKE_TARGET=non_destructive TEST_FLAGS='--tags test_ping' ./test/utils/run_tests.sh`
+
+Available targets (containers):
+
+ - centos6
+ - centos7
+ - fedora-rawhide
+ - fedora23
+ - opensuseleap
+ - ubuntu1204
+ - ubuntu1404
+ - ubuntu1604