mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
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.
This commit is contained in:
parent
6e65ebda26
commit
2e857cfafd
1 changed files with 21 additions and 0 deletions
|
@ -90,3 +90,24 @@ Define Windows inventory:
|
||||||
|
|
||||||
Run the tests:
|
Run the tests:
|
||||||
make test_winrm
|
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
|
||||||
|
|
Loading…
Reference in a new issue