Skip to content

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 to lintjs; testjs; lintpy; testpy; integration_tests

Build dependency graph

Python

  • oddslingers lintpy Run the python linter, equivalent to cd core; flake8 | pymentize -l python.
  • oddslingers testpy Run django python tests, equivalent to cd core; ./manage.py test
  • oddslingers integration_tests Run the django integration tests, equivalent to cd core; ./manage.py integration_test

Javascript

  • oddslingers lintjs Run the javascript linter, equivalent to cd core/js; eslint .
  • oddslingers testjs Run JS tests, equivalent to cd core/js; babel-node tests/*.js

CSS

  • oddslingers buildcss Run the SASS compiler on our CSS to detect SCSS syntax errors, equivalent to cd core/js/; node-sass-chokidar scss/ -o ../static/css