Hi folks, I’ve just found this thread whilst I was raising my own issue somewhat related to this. I’m creating some unit tests for the community.beszel collection and slightly different to running integration tests I’m using the command: ansible-test units --docker --requirements
I noticed that the unit tests are failing in the container due to the ansible_collections.community.internal_test_tools not being found. I thought that ansible-test would use my requirements.yml file and install this collection dependency like it does with Python requirements.txt but that doesn’t seem to be the case based on @felixfontein’s last response.
To @branic point, I also couldn’t find:
So if you are in
/path/to/ansible_collections/amazon/aws, you need another directory/path/to/ansible_collections/community/general(with exactly the same/path/to) where community.general is installed (or its Git repo checked out). Only then will ansible-test find it (and automatically copy it into the Docker container).
Documented anywhere either. Where could this be documented, I don’t mind raising a PR for it.