Forgot your password?
typodupeerror

Comment Re:Rookie question on debugging monster code bases (Score 1) 357

You can easily do this with designing your components that way. It's painful, and often not worth it if the overhead is too much, but here's an example in C++

Foo.h contains

class FooImpl;
class Foo
{
// calls here that require interaction with foo.
FooImpl *foo_impl;
};

Foo.cpp can then include FooImpl.h which references FooImpl.cpp -- which in turn can have FooImpl.t.cpp which is a unit test for FooImpl.

This obviously will not stress interdependencies and bugs, but you can make tests for larger component behavior too. (At the limit, you have to consider the costs of your tests...hmm..)

Slashdot Top Deals

The closest to perfection a person ever comes is when he fills out a job application form. -- Stanley J. Randall

Working...