Skip to content

Commit 1d44e8e

Browse files
authored
Merge pull request #12 from manala/chore/simplify-tests
chore: Simplify tests
2 parents 0e6cb26 + 88fd85c commit 1d44e8e

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

Makefile

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ test: test.sanity test.units test.integration
4040
test.sanity: SHELL := $(MANALA_DOCKER_SHELL)
4141
test.sanity:
4242
ansible-test sanity \
43-
--requirements \
44-
--venv \
4543
--python 3.13 \
4644
$(if $(VERBOSE), --verbose) \
4745
--color yes \
@@ -53,9 +51,8 @@ test.sanity:
5351
test.units: SHELL := $(MANALA_DOCKER_SHELL)
5452
test.units:
5553
ansible-test units \
56-
--requirements \
57-
--venv \
5854
--python 3.13 \
55+
--venv \
5956
$(if $(VERBOSE), --verbose) \
6057
$(if $(COVERAGE), --coverage) \
6158
--color yes
@@ -65,9 +62,6 @@ test.units:
6562
test.integration: SHELL := $(MANALA_DOCKER_SHELL)
6663
test.integration:
6764
ansible-test integration \
68-
--requirements \
69-
--venv \
70-
--python 3.13 \
7165
$(if $(VERBOSE), --verbose) \
7266
$(if $(COVERAGE), --coverage) \
7367
--color yes

README.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,17 +78,22 @@ Open a docker shell
7878
make sh
7979
```
8080

81-
Launch sanity tests (first time with `--requirements`)
81+
Launch sanity tests over a specific file or not
8282
```shell
83-
ansible-test sanity --python 3.13 --requirements
8483
ansible-test sanity --python 3.13
84+
ansible-test sanity --python 3.13 plugins/action/path.py
8585
```
8686

87-
Launch units tests (first time with `--requirements`) over a specific file or not
87+
Launch units tests over a specific file or not
8888
```shell
89-
ansible-test units --python 3.13 --requirements
90-
ansible-test units --python 3.13
91-
ansible-test units --python 3.13 tests/unit/plugins/lookup/test_foo.py
89+
ansible-test units --python 3.13 --venv
90+
ansible-test units --python 3.13 --venv tests/unit/plugins/filter/test_join.py
91+
```
92+
93+
Launch integration tests over a specific target or not
94+
```shell
95+
ansible-test integration
96+
ansible-test integration path
9297
```
9398

9499
## Licensing

0 commit comments

Comments
 (0)