Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to run pytest-watch inside docker #91

Open
realmhamdy opened this issue Jul 3, 2018 · 3 comments
Open

How to run pytest-watch inside docker #91

realmhamdy opened this issue Jul 3, 2018 · 3 comments

Comments

@realmhamdy
Copy link

realmhamdy commented Jul 3, 2018

Hello

I thought this was a no-brainer and will just work out of the box. But for some reason, ptw won't rerun tests inside docker when code changes, even if it works fine on the host.
Here's a minimal repo that reproduces the issue for me.

##Steps to reproduce:

  1. docker build -t ptw-docker .
  2. docker run -v /path/to/repo/code:/app
  3. The output indicates the test failed.
  4. Modify test_sample.py and see tests are not rerun.
@max-sixty
Copy link

If you run with -it, does that help? I have no problem running with docker-compose

@max-sixty
Copy link

I'm currently having some issues when running two containers concurrently FWIW

@Downchuck
Copy link

This is handled by the -p flag for polling; #9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants