-
Notifications
You must be signed in to change notification settings - Fork 82
Tests
Hannes Hauswedell edited this page May 19, 2017
·
7 revisions
TODO cmake call
TODO how GoogleTest it is automatically checked
TODO create file, add to cmake lists et cetera
- test the publicly specified interfaces
- remember to test const/non-const versions
- remember to test rvalue/lvalue versions
- try to use generalized typed test whenever possible
- write typed tests for your concepts and include all types that fulfill the concept
- prefer many small tests to one big test
- try to make tests atomic, i.e. make them independent of functionality tested in other tests
- if you need to use functionality from other tests, re-order your tests so that they only depend on previously tested functionality, not on things tested "later on"
- never introduce circular dependencies between tests!
TODO