Project

General

Profile

Feature #1716

enhance unit test coverage

Added by laforge over 2 years ago. Updated about 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
05/17/2016
Due date:
% Done:

0%

Spec Reference:

Description

We currently only have (some) unit test for the following parts:

libosmocore

./bits
./timer
./msgb
./logging
./conv
./stats
./utils
./loggingrb
./bitvec
./msgfile
./strrb
./ares

libosmogsm:

./fr
./auth
./a5
./gb
./comp128
./tlv
./gsup
./lapd
./gprs
./gsm0408
./sms
./ussd
./gsm0808
./smscb
./kasumi

libosmosim

./sim

libosmovty:

./vty
Please review the existing unit tests and determine which API functions exported by our libraries do not currently receive any unit test coverage.
  • generate a list of API functions without test cases and update the ticket
  • pick those API functions that are easy to test without a very complicated fixture and lots of state
  • implement autotest cases for each of the affected functions

It's also worth to think about possible ways to automatize the detection of 'exported library functions without test cases', if that's possible in some way.


Related issues

Related to libosmocore - Feature #1987: gcov code coverage test supportNew2017-03-17

Precedes OpenBSC - Feature #1717: improve test coverage of libbsc/libmsc/... inside OpenBSC git repoRejected2016-05-182016-05-18

History

#1 Updated by laforge over 2 years ago

  • Precedes Feature #1717: improve test coverage of libbsc/libmsc/... inside OpenBSC git repo added

#2 Updated by laforge about 2 years ago

  • Assignee deleted (dlsitzer)

#3 Updated by fixeria 23 days ago

  • Related to Feature #1987: gcov code coverage test support added

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)