addons-server/scripts/run_jstests.py

32 строки
803 B
Python

"""
A wrapper around nosetests to run JavaScript tests in a CI environment.
Example::
python run_jstests.py --with-xunit \
--with-django-serv --django-host hudson.mozilla.org \
--with-jstests \
--jstests-server http://jstestnet.farmdev.com/ \
--jstests-suite zamboni --jstests-browsers firefox
"""
import os
import site
import subprocess
ROOT = os.path.join(os.path.dirname(__file__), '..')
site.addsitedir(os.path.join(ROOT, 'vendor'))
site.addsitedir(os.path.join(ROOT, 'vendor/lib/python'))
from jstestnetlib.noseplugins import JSTests, DjangoServPlugin
import nose
def main():
nose.main(addplugins=[DjangoServPlugin(ROOT), JSTests()])
if __name__ == '__main__':
main()