Unit testing ensure that individual functions work properly. This also allows changes in the function implementation without needing to worry about the function breaking.
Since all unit tests can be run in an automated framework, there is minimal effort involved in reapplying the tests.
The best way to run unit tests is to run them all at once. Individual categories and functions may not have their own unit tests, but this will run all that exist:1 call CBA_fnc_test;
To run tests for the Arrays functions (will run tests for each function in Arrays component):1 ["cba", "arrays"] call CBA_fnc_test;
To run tests for the Arrays::CBA_fnc_filter function only:1 call compile preprocessFileLineNumbers "\x\cba\addons\arrays\test_filter.sqf";
For a function, CBA_fnc_eatFrogs which is a function in the category Eating, (defined in file addons\eating\fnc_eatFrogs.sqf), create a test file as addons\eating\test_eatFrogs.sqf. Use the ASSERT_* macros to test the function in this test file.