Skip to content

Commit 18a7b26

Browse files
authored
Update README.md
1 parent f83d456 commit 18a7b26

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,35 @@ There are many ways in which you can participate in the project, for example:
7373
- Review the documentation and make pull requests for anything from typos to new content
7474
- If you are interested in fixing issues and contributing directly to the code base, please see the [CONTRIBUTING](CONTRIBUTING.md) document.
7575

76+
## Run tests
77+
78+
Activate env setup of ansible core:
79+
80+
```
81+
git clone [email protected]:ansible/ansible.git
82+
cd ansible
83+
source hacking/env-setup
84+
```
85+
86+
Clone the repo:
87+
88+
```
89+
git clone [email protected]:ngine-io/ansible-collection-cloudstack.git
90+
cd ansible-collection-cloudstack
91+
```
92+
93+
Run tests in docker with cloudstack simulator:
94+
```
95+
# All tests (note the trailing slash in `cloud/cs/`)
96+
ansible-test integration --docker --color --diff -v cloud/cs/
97+
98+
# One test e.g. cs_instance (note no trailing slash in `cloud/cs/cs_instance`)
99+
ansible-test integration --docker --color --diff -v cloud/cs/cs_instance
100+
101+
# Run tests for code you changed
102+
ansible-test integration --docker --color --diff -v --changed cloud/cs/
103+
```
104+
76105
## License
77106

78107
GNU General Public License v3.0

0 commit comments

Comments
 (0)