-
Notifications
You must be signed in to change notification settings - Fork 19
Running Tests
Angel Rey edited this page Dec 23, 2020
·
1 revision
Our codebase has a number of test suites and linting tools set up to help you write clean, correct code.
To run the full suite of tests run by CircleCI on every Pull Request, use the shortcut:
-
oddslingers tests
Equivalent tolintjs; testjs; lintpy; testpy; integration_tests
-
oddslingers lintpy
Run the python linter, equivalent tocd core; flake8 | pymentize -l python.
-
oddslingers testpy
Run django python tests, equivalent tocd core; ./manage.py test
-
oddslingers integration_tests
Run the django integration tests, equivalent tocd core; ./manage.py integration_test
-
oddslingers lintjs
Run the javascript linter, equivalent tocd core/js; eslint .
-
oddslingers testjs
Run JS tests, equivalent tocd core/js; babel-node tests/*.js
-
oddslingers buildcss
Run the SASS compiler on our CSS to detect SCSS syntax errors, equivalent tocd core/js/; node-sass-chokidar scss/ -o ../static/css