I'm writing an app in python, which I will run in docker. Therefore I want to test it in docker as well. I'm working in spacemacs and want to use the tools available to test.
With projectile this is possible, I can call projectile-test-project
and give the command: docker-compose run --rm mycontainer pytest tests/
However it would be nice if I could use some of the Python layer functions such as python-test-one
. This doesn't work because it will call the command py.test -x -s path/to/file...
I would really like to be able to change that command to something that starts with docker-compose
. I think this should be doable, but I don't know much about lisp. How can I do this?