python


Having nosetests watch files from outside container and rerun tests inside container


How can I develop outside a docker container but still have nosetests watch my file changes and rerun my unit tests inside the container?
Here's my Dockerfile
FROM ubuntu
# Install Python.
RUN \
apt-get update && \
apt-get install -y python python-dev python-pip python-virtualenv && \
rm -rf /var/lib/apt/lists/* && \
pip install nose nose-watch mock && \
locale-gen en_US.UTF-8
# Define working directory.
WORKDIR /data/test/src
# Define default command.
CMD ["bash"]
Here are my commands:
docker build -t="test” .
docker run -it -v ~/test/src:/data/test/src test
When I run nosetests --with-watch inside the container, everything works. However, if I make file changes outside the container (I want to develop outside the container), then nosetests won't detect the changes and rerun the tests. I thought a volume was supposed to share files from host to container...

Related Links

Assign different operators during python loop
When installing through pip, how do I tell matplotlib how to find tkinter?
Regex for weekdays in python [closed]
Detect Changes to Environment Variables
Select all by type: Geometry. Equivalent Python script?
Sorting algorithm doesn't work
How to avoid “Name 're' is not defined” error while connecting pycharm remote debugger?
Python - Generate binary list with itertools
Capture domain and path from URL with regex
Pylab animation multiple figures
Django Password Reset Email Error 10060
Excel delimited file
Why is scrapy dumping thousands of `ERROR` log messages without any description of the error?
Python 2.5.4: how to find sum of logarithm values
Posting a json data in url — Python
How to Covert to dictionary in Python

Categories

HOME
dotnetrdf
sidekiq
ssas-2012
ibm-watson-cognitive
puzzle
jsviews
tomcat7
phpstorm
dataframe
file-io
aruco
vuex
eclipse-cdt
xul
xlsx
abcpdf
r-lavaan
mule-studio
pyephem
prestodb
styles
google-ima
rworldmap
data-cleansing
opencart2.3
version-numbering
websauna
roundcube
edb
division
threshold
es-shell
stereo-3d
powermta
apiary
catia
lumen-5.3
dimple.js
pinvoke
tcserver
windows-azure-pack
visible
kendo-combobox
coordinate-transformation
post-processing
aerogear
lemoon
rad
findcontrol
pylearn
web-component-tester
magento-1.12
ticket-system
hidden-field
mbox
uipickerviewcontroller
sanitization
facebook-chat
installshield-2011
asp.net-mvc-scaffolding
stagefright
html-form-post
pitch
moq-3
icefaces-3
text-services-framework
authenticode
phpcrawl
junit3
zend-form-element
loadui
revert
trampolines
pci-bus
revision

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App