-
Notifications
You must be signed in to change notification settings - Fork 82
Open
Labels
Description
Goal:
Write unit test for Javascript and Python files (https://github.com/ethanchewy/PythonBuddy/blob/master/app.py, https://github.com/ethanchewy/PythonBuddy/blob/master/static/js/javascript.js, and https://github.com/ethanchewy/PythonBuddy/blob/master/static/js/cm-validator-remote.js)
How to do this?
- Python: use unit test python library or Flask testing (http://flask.pocoo.org/docs/0.12/testing/#the-first-test)
- Javascript: use a JS unit test library like Jasmine (https://jasmine.github.io/)
Expected results should be fairly straight forward. Just play around with pylint and error messages and just write example cases with said code and pylint response.