From 2e857cfafd009d09ecd582a819f11d7073780b4a Mon Sep 17 00:00:00 2001 From: Gennady Trafimenkov Date: Thu, 1 Sep 2016 03:25:53 +0400 Subject: [PATCH] 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. --- test/integration/README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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