Skip to content
Snippets Groups Projects
  • David Vossel's avatar
    73cb2d50
    Unit Test Framework API · 73cb2d50
    David Vossel authored
    The Unit Test Framework is a new API that manages registration and
    execution of unit tests in Asterisk with the purpose of verifying the
    operation of C functions.  The Framework consists of a single test
    manager accompanied by a list of registered test functions defined
    within the code.  A test is defined, registered, and unregistered
    from the framework using a set of macros which allow the test code
    to only be compiled within asterisk when the TEST_FRAMEWORK flag is
    enabled in menuselect.  This allows the test code to exist in the
    same file as the C functions it intends to verify.  Registered tests
    may be viewed and executed via a set of new CLI commands.  CLI commands
    are also present for generating and exporting test results into xml
    and txt formats.
    
    For more information and use cases please refer to the documentation
    provided at the beginning of the test.h file.
    
    Review: https://reviewboard.asterisk.org/r/447/
    
    
    git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@236027 65c4cc65-6c06-0410-ace0-fbb531ad65f3
    73cb2d50
    History
    Unit Test Framework API
    David Vossel authored
    The Unit Test Framework is a new API that manages registration and
    execution of unit tests in Asterisk with the purpose of verifying the
    operation of C functions.  The Framework consists of a single test
    manager accompanied by a list of registered test functions defined
    within the code.  A test is defined, registered, and unregistered
    from the framework using a set of macros which allow the test code
    to only be compiled within asterisk when the TEST_FRAMEWORK flag is
    enabled in menuselect.  This allows the test code to exist in the
    same file as the C functions it intends to verify.  Registered tests
    may be viewed and executed via a set of new CLI commands.  CLI commands
    are also present for generating and exporting test results into xml
    and txt formats.
    
    For more information and use cases please refer to the documentation
    provided at the beginning of the test.h file.
    
    Review: https://reviewboard.asterisk.org/r/447/
    
    
    git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@236027 65c4cc65-6c06-0410-ace0-fbb531ad65f3