Changes between Version 6 and Version 7 of TestingGuidelines


Ignore:
Timestamp:
Jun 12, 2024, 7:42:53 PM (6 months ago)
Author:
FrederikHeber
Comment:

fixed paths to unit text examples

Legend:

Unmodified
Added
Removed
Modified
  • TestingGuidelines

    v6 v7  
    102102Have a look at subfolders called ''unittests'' in [source:src]. These folders containing the unit test soure code are located in the folders with the associated ''component'' or unit to test. Hence, they are also refered to as component tests and this is also their main intention: ''Testing small components of the big code for its specific functionality.''
    103103
    104 Let us take the '''!SingletonUnitTest''' as an example, located in [source:src/Patterns/unittests] that tests correct implementation of the Singleton pattern in [source:src/Patterns/Singleton_impl.hpp]. The unit test consists of the following files:
    105  * source file with the test implementation, e.g. [source:src/Patterns/unittests/SingletonTest.cpp]
    106  * header file with the test definition, i.e. the class containing the test and all test functions to call, , e.g. [source:src/Patterns/unittests/SingletonTest.hpp]
    107  * [source:src/unittests/UnitTestMain.cpp] with the main function calling the unit test runner.
     104Let us take the '''!SingletonUnitTest''' as an example, located in [source:ThirdParty/CodePatterns/src/Patterns/unittests] that tests correct implementation of the Singleton pattern in [source:ThirdParty/CodePatterns/src/Patterns/Singleton_impl.hpp]. The unit test consists of the following files:
     105 * source file with the test implementation, e.g. [source:ThirdParty/CodePatterns/src/Patterns/unittests/SingletonTest.cpp]
     106 * header file with the test definition, i.e. the class containing the test and all test functions to call, , e.g. [source:ThirdParty/CodePatterns/src/Patterns/unittests/SingletonTest.hpp]
     107 * [source:ThirdParty/CodePatterns/src/unittests/UnitTestMain.cpp] with the main function calling the unit test runner.
    108108 * additional lines in '''Makefile.am''' to mark the small program as a test and to define the program to consist of your source, header and the !UnitTestMain.cpp file.
    109109