-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extend unit test coverage #98
Comments
puzzlepaint posted on Sourceforge:
Diff:
|
|
I refactored the existing tests. By default configuration, unit tests are now not only built but also run during build when a unit changes. We have only a single pure unit test at the moment, georeferencing_t. All the other tests require a large collection of objects to interact. It would be good to consider the dependencies when implementing or refactoring Mapper features. To explicitly build and run all Tests, invoke "make Mapper_Test". Mapper_Test is also available in KDevelop's project view. In addition, CMake generates a "test" target. This is target is not available in KDevelop, it will not build any tests, and it will not display the output of failed tests. Guidelines on unit test programming with (and for) Qt are available at |
Recommended reading: http://wiki.qt.io/Writing_Unit_Tests |
Related: #835 coverage PR |
puzzlepaint reported on Sourceforge [tickets:#98]:
At the moment, only very few unit tests exist but the basics for testing, esp. also for testing mouse input for tools are implemented. Based on this the unit test coverage should be extended.
The text was updated successfully, but these errors were encountered: