Increase of python code coverage
Context
The idea is to write unit test to go through all the code and edge cases to increase the code coverage for python.
This might also detect small issues such as #6 (closed).
How to proceed
- Use pytest-mock
- Go through all the list Qat Code Coverage
- Implement unit test to cover the edge case
Exemple : !42 (merged)
NOTE : The python tests already use the module pytest
, pytest-mock
has been picked up by default.
Current state of the task
-
client/qat/internal/app_launcher.py 226 35 85% -
client/qat/internal/application_context.py 112 3 97% -
client/qat/internal/binding.py 31 2 94% -
client/qat/internal/communication_operations.py 25 1 96% -
client/qat/internal/find_object.py 73 2 97% -
client/qat/internal/gesture_operations.py 82 2 98% -
client/qat/internal/mouse_operations.py 49 2 96% -
client/qat/internal/qt_custom_object.py 70 7 90% -
client/qat/internal/qt_method.py 40 2 95% -
client/qat/internal/qt_object.py 125 7 94% -
client/qat/internal/screenshot_operations.py 49 5 90% -
client/qat/internal/tcp_client.py 55 2 96% -
client/qat/internal/tcp_server.py 84 9 89% -
client/qat/internal/touch_operations.py 37 2 95% -
client/qat/internal/xml_report.py 190 4 98% -
client/qat/qat.py 181 3 98% -
client/qat/report.py 44 2 95%
Edited by Kevin DA SILVA