ethanchewy / PythonBuddy

1st Online Python Editor With Live Syntax Checking and Execution
https://pythonbuddy.com
BSD 3-Clause "New" or "Revised" License
277 stars 84 forks source link

Adds test_no_errors unittest #52

Closed chaps closed 5 years ago

chaps commented 5 years ago

Adds unit test to cover missing case by coverage(format_errors input is pylint success message code rated at... ) Travis CI build: https://travis-ci.org/chaps/PythonBuddy/builds/595419922

Covers/tests line 175 , coverage report before and after the test case was added:

coverage report -m
Name                                         Stmts   Miss  Cover   Missing
--------------------------------------------------------------------------
PythonBuddy/__init__.py                          0      0   100%
PythonBuddy/app.py                             118     48    59%   23, 42-44, 66-71, 85-95, 99-103, 123-146, 175, 186-189, 247, 297, 302
PythonBuddy/pylint_errors/__init__.py            1      0   100%
PythonBuddy/pylint_errors/pylint_errors.py       2      0   100%
--------------------------------------------------------------------------
TOTAL                                          121     48    60%
coverage report -m
Name                                         Stmts   Miss  Cover   Missing
--------------------------------------------------------------------------
PythonBuddy/__init__.py                          0      0   100%
PythonBuddy/app.py                             118     46    61%   23, 42-44, 66-71, 85-95, 99-103, 123-146, 186-189, 297, 302
PythonBuddy/pylint_errors/__init__.py            1      0   100%
PythonBuddy/pylint_errors/pylint_errors.py       2      0   100%
--------------------------------------------------------------------------
TOTAL                                          121     46    62%