I always have been interested in the theme of
Continuous Integration(a.k.a. CI). I have thought my current team was applying the CI pretty well, I find out still there are many things to improve.
Especially, following two points were useful.
- Don't do everything in the CI build. If the build time exceeds 10 minutes, people begin to complain. Do tasks which requires a heavy processing in a separate periodic bulid(like a daily build).
- Complement the testing by using static & dynamic code analysis tools.
Static code analysis checks code duplications, possible errors and coding standard violations. Dynamic analysis checks the
coverage of test codes. Unfortunately It's hard to find an useful free analysis tool for C++ language. This book informed me about two tools which support C++ :
SourceMonitor and
Simian.
SourceMonitor measures the code complexity. A complex code means a weak spot for bug penetration, so when refactoring you should pay attention to them first. Simian checks code similarities so that a copy
& paste code which goes against the 'Don't Repeat Yourself' principle sneaks into the code base. A simple tutorial about how to set up these two tools is in
my wiki(only in Korean).
Does anyone know about free C++ code coverage tools?
댓글을 달아 주세요