- Python 2.7+
IGNORE_QUNIT_HTML_FILES
ignore HTML qunits filesJSHINT_FILES_FIND
JS Hint search files grep. Default-name "*.js" | xargs grep -l '/\*jslint' | grep -v libs
QunitTestsView
Qunit tests (stuff permission required), example entry in urls.py:
url(r"^js-tests/(?P<path>.*)", 'ydcommon.views.qunit_view', name='quinit'),
Checking requirement for tests:
./manage.py check_test_requirements
Running Qunit tests
./manage.py run_qunit
Running JS Hint
./manage.py jshint
Running JS Hint with custom directory
./manage.py jshint --dir=my/custom/dir
Clear database - drop all tables
./manage.py clear_database
Dump database
./manage.py dump_database