* Run tests one file at a time, as the teardown isn't cleaning up objects in global namespace properly

This commit is contained in:
Matthew Honnibal 2015-06-06 05:58:16 +02:00
parent 4126ef3b8c
commit 27c8dc3db2

6
fabfile.py vendored
View File

@ -52,8 +52,12 @@ def clean():
def test():
with virtualenv(VENV_DIR):
# Run each test file separately. pytest is performing poorly, not sure why
with lcd(path.dirname(__file__)):
local('py.test -x')
files = local('ls tests/test_*.py', capture=True)
for fn in files:
with settings(warn_only=True):
local('py.test -x %s' % fn)
def train(json_dir=None, dev_loc=None, model_dir=None):