IonSystems / tiberius-robot

Repository for all software modules used by Heriot-Watt University's Tiberius Robot.
1 stars 0 forks source link

Increase unit testing coverage #16

Open camieac opened 8 years ago

camieac commented 8 years ago

Please tag all testing commits to this issue.

camieac commented 8 years ago

Current coverage:

Name                 Stmts   Miss  Cover   Missing
--------------------------------------------------
actuators.py            57     40    30%   19, 22-25, 28-31, 34-37, 41-44, 48-51, 55-61, 65-73, 76-80
cmps11.py              155     77    50%   81-83, 87-91, 97-99, 101-103, 109-112, 114-117, 119-122, 128-131, 133-136, 138-141, 147-150, 152-155, 157-160, 166-169, 175-177, 179-181, 189, 196-202, 204, 206, 208, 210, 212, 214, 217-221
control.py             156    133    15%   29-34, 37-42, 46-49, 53-56, 59-110, 113-120, 123-130, 135-185, 188-202
md03.py                 76     52    32%   31-33, 42-43, 50-54, 57-74, 77-106
sensors.py              32     17    47%   29-39, 67-68, 71, 74-79
srf08.py                45     22    51%   32-33, 36-48, 51-63
clauses.py              13      0   100%   
database.py             11      4    64%   10, 14, 18, 22
sqlite_database.py     115     15    87%   21-22, 33, 91-98, 118, 142-147
logger.py               15      0   100%   
smbus.py                75     41    45%   49, 52, 59-66, 70-72, 80-81, 89-90, 98, 106-107, 123-124, 132, 145, 155-156, 164, 172, 180-181, 189, 193, 198, 202-203, 207-213
util.py                 47     13    72%   8-9, 17, 33-34, 43, 52-58
detection.py            15      6    60%   18-26, 29
enum.py                421    190    55%   13-18, 22-23, 27-30, 34-36, 52, 56, 59, 88-91, 122, 124, 129, 133, 148, 176-185, 190, 202, 219, 221, 227-229, 238-239, 254-255, 274-275, 286, 294-295, 317, 337-340, 343, 348-351, 354, 365, 378-381, 384, 387, 390, 393, 396, 408, 423-470, 492, 495, 538, 556-557, 559, 577-621, 637-651, 656, 662, 667-676, 684-691, 701-709, 714, 719, 724, 729, 735-737, 742-744, 749, 763, 776, 796-806, 820, 824-835
sqlite3.py               1      1     0%   23
sqlite3/dbapi2.py       43     43     0%   23-89
--------------------------------------------------
TOTAL                 1277    654    49%   
----------------------------------------------------------------------
Ran 9 tests in 0.105s

Produced using

cd modules/testing
nosetests --with-coverage