I have a large library of code which has a few (much too few) unit tests; i am adding code to the library, trying to make unit tests for the new code (i also want to add unit tests for old code in future, when i get more experienced).
We currently use a custom (not very elaborate) unit-testing framework; i would like to switch to boost.test
.
My library layout is:
mylib1 (300 files, 70000 lines of code)
mylib
?
mylib2 (70 files, 7000 lines of code)
UnitTestFramework
boost.test
will replace itboost.test
will replace itboost.test
will replace itboost.test
will replace itI am asking the following questions here:
mylib
DLL? (I link mylib1
and mylib2
into one DLL)mylib1
directory?mylib1
and mylib2
, how should the corresponding unit-tests be located - in sibling directories, together, etc?mylib1
and mylib2
)Actually, I would simplify it even further :
+ mylib1 (300 files, 70000 lines of code)
+ unit_tests
+ test_foo.cpp
+ test_bar.cpp
+ mocks
+ mock_foo.hpp
+ mock_bar.hpp
+ foo.cpp
+ foo.hpp
+ bar.cpp
+ bar.hpp
+ mylib2
similar as for mylib1