ECCC-MSC / libecbufr

libecbufr is a general purpose, template-oriented BUFR encoding/decoding library
Other
10 stars 7 forks source link

Unit tests with the "check" tool #89

Closed tomkralidis closed 4 years ago

tomkralidis commented 4 years ago

Moved from https://blueprints.launchpad.net/libecbufr/+spec/unit-tests

Unit tests with the "check" tool

Registered by Michel Van Eeckhout on 2009-08-31

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 on 2009-08-31

Completed by

Related branches

lp:~libecbufr-dev/libecbufr/unit-test

Related bugs

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.