Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions docs/en_us/internal/testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -732,6 +732,27 @@ To view JavaScript code style quality run this command.



Code Complexity Tools
----------------------

Two tools are available for evaluating complexity of edx-platform code:

- `radon <https://radon.readthedocs.org/en/latest/>`__ for Python code complexity.
* To obtain complexity, run

::

paver run_complexity

- `plato <https://github.com/es-analysis/plato>`__ for JavaScript code complexity. Several options are available on the command line; see documentation.
* Below, the following command will produce an html report in a subdirectory called "jscomplexity"

::

plato -q -x common/static/js/vendor/ -t common -l .jshintrc -r -d jscomplexity common/static/js/



Testing using queue servers
---------------------------

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
},
"devDependencies": {
"jshint": "^2.7.0",
"edx-custom-a11y-rules": "edx/edx-custom-a11y-rules"
"edx-custom-a11y-rules": "edx/edx-custom-a11y-rules",
"plato": "1.2.2"
}
}