One of the tasks on
my plate is breaking up our old (old!) test suite. We have a set of tests that live in this
suite and without getting into the gory details, they need to be moved out of
that project. In short, that project is
old and needs everything to be built to be used for testing. Since unit tests are designed NOT to need
everything built - just the bit of code I am trying to test - this is not a
good paradigm to follow long term.
So we have started
to break up these old tests and move them to the best location (module) into
which they belong. It's going well so
far but as some tests are really old
they become troublesome and time consuming to move.
In the process, I
have learned more about Cmake than I ever
wanted to know! As you can imagine, if a
test is moved from its original location and into a new location, the file that
directed it to be built in the old location needs to have that entry removed. And the file that instructs the compiler for
the new location needs to be updated to include the new file as well.
So in the best case,
a single move has to update three files.
I haven't hit that best case yet - there are always more updates needed - but I am getting better at it each
day. If you are interested, let me know
and I can post more details.
Questions, comments,
concerns and criticisms always welcome,
John
No comments:
Post a Comment