Commit e97ce29d by Csók Tamás

fabfile.py: normal test call excludes selenium ones and selenium test call excludes the rest

parent bdafc54b
...@@ -84,7 +84,16 @@ def make_messages(): ...@@ -84,7 +84,16 @@ def make_messages():
def test(test=""): def test(test=""):
"Run portal tests" "Run portal tests"
with _workon("circle"), cd("~/circle/circle"): with _workon("circle"), cd("~/circle/circle"):
run("./manage.py test --settings=circle.settings.test %s" % test) run("./manage.py test --settings=circle.settings.test "+
"--exclude-dir=dashboard/tests/selenium %s" % test)
@roles('portal')
def selenium(test="", driver="firefox"):
"Run portal selenium tests"
with _workon("circle"), cd("~/circle/circle"):
run("./manage.py test --settings=circle.settings.test "+
" --with-selenium-driver --selenium-driver="+
"%s -w dashboard/tests/selenium %s" % (driver, test))
def pull(dir="~/circle/circle"): def pull(dir="~/circle/circle"):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment