I have a Python project for which I run pytest using tox.
When I run tox manually on the agent (from the same directory from where the task runs) everything works, but when running with the remote agent I am getting some issues with the environment variables already set by tox. Tox creates a virtual environment, set variables there and then executes pytest. Somehow, this is not working when executed from Bamboo.
This is a problem because we expect to run unit tests in bamboo in the same way as we run them locally.
How does a remote agent execute the tasks? Is the agent setting some virtual environment? Clearly is not running a task in the same way as in the script section. What are the differences?
We are thinking about moving all our automation from TeamCity to Bamboo (given that we use Bitbacket, JIRA and Confluence already), but it's not a good shift if Bamboo doesn't behave as expected (we expect a script to behave the same as if run manually from the command line).