Last active
August 29, 2015 14:04
-
-
Save haakenlid/cae755f9b4e3504e1b2a to your computer and use it in GitHub Desktop.
mysite.sublime-project settings for running django tests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"build_systems":[ | |
{ | |
"env": | |
{ | |
"TEST_SETTINGS_MODULE": "mysite.settings.testing", | |
"VENV_FOLDER": "/srv/localhost.mysite.com/venv/mysite/" | |
}, | |
"file_regex": "^ *File \"(...*?)\", line ([0-9]*)", | |
"name": "app unit tests", | |
"selector": "source.python, text.html", | |
"shell_cmd": "source \\$VENV_FOLDER/bin/activate && django-admin test $file_path --settings=\\$TEST_SETTINGS_MODULE && deactivate", | |
"variants": | |
[ | |
{ | |
"file_regex": "^ *File \"(...*?)\", line ([0-9]*)", | |
"name": "functional tests", | |
"shell_cmd": "source \\$VENV_FOLDER/bin/activate && django-admin test functional_tests --settings=\\$TEST_SETTINGS_MODULE && deactivate" | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment