Bug #464

need unit tests for all exported functions and macros

Added by Hammel about 2 years ago. Updated over 1 year ago.

Status:ClosedStart date:23 Aug 2015
Priority:ImmediateDue date:
Assignee:Hammel% Done:

100%

Category:-
Target version:PiBox - 0.11.0
Severity:02 - High

Description

This library definitely needs some unit tests.

Associated revisions

Revision 5d50c3a0
Added by Hammel over 1 year ago

RM #464: Add ability to run individual or sets of tests, defaulting to all tests. This required a change to make all tests have the same prototype structure of accepting an int argument and returning an int value.

Revision d74ec848
Added by Hammel over 1 year ago

RM #464: Fix comment for rpiSave tests to reflect variation argument is unused.

Revision d1ef909f
Added by Hammel over 1 year ago

RM #464: Add V_ANY to reflect functions that might test both normal and negative tests.

Revision 51297e17
Added by Hammel over 1 year ago

RM #464: Update variation usage for test that don't use that value to use V_ANY.

Revision 5c38bf85
Added by Hammel over 1 year ago

RM #464: Reset verbose to -1 on pncLoggerInit().

Revision df1518d5
Added by Hammel over 1 year ago

RM #464: Replaced logger functions with fprintf().

Revision fa0545c2
Added by Hammel over 1 year ago

RM #464: Replace exit() with return() in rpi.c unit tests.

Revision 1d7713ba
Added by Hammel over 1 year ago

RM #464: Integrate logger unit tests and stubs for utils tests.

Revision 0f52907a
Added by Hammel over 1 year ago

RM #464: Added unit tests for utility functions of the library.

History

#1 Updated by Hammel almost 2 years ago

  • Priority changed from Urgent to Immediate

#2 Updated by Hammel almost 2 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 10

Initial test framework was added with addition of rpi config file API. Now I just need to extend it for the rest of the library.

#3 Updated by Hammel over 1 year ago

  • Status changed from In Progress to Closed
  • % Done changed from 10 to 100

Completed unit tests for all library functions. As expected, I found plenty of bugs that have now been stomped out.

All updates committed and pushed.

Closing issue.

Also available in: Atom PDF