Unit tests with the "check" tool

Registered by Michel Van Eeckhout

Unit tests are needed to make sure the library follows certain specifications. It will also ensure that working functions keep working the same way when they are modified. The "check" tool for unit testing C programs has been chosen to implement these unit tests. To each C source file in the library, there is an equivalent unit test C source file with a named derived from the original source. It is therefore easy to find a particular test.
We should be able to measure the code coverage of the tests with the gcov tool that comes with the gcc compiler.

Blueprint information

Status:
Started
Approver:
vanh souvanlasy
Priority:
High
Drafter:
None
Direction:
Needs approval
Assignee:
Michel Van Eeckhout
Definition:
Approved
Series goal:
None
Implementation:
Slow progress
Milestone target:
None
Started by
Michel Van Eeckhout

Sprints

Whiteboard

A configure option will be added "--enable-code-coverage" to compile with special flags that lets you measure the code coverage of executions. This will be useful in order to measure the progress of the unit tests.

2010/11/26 Current assignee does not have time to pursue this further for the time being - need help.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.