A
Alf P. Steinbach
OK, this displays my ignorance of what's out there (it's been a long time since
I developed for a living), and also my laziness not googling.
However.
I want to unit-test some library code I'm sort of extracting from some old code
I have.
The things that should work without error are easy to test, and it's currently
not so much code that I've considered a testing framework, although the code
size increases. I'm thinking that perhaps the popular frameworks don't support
my needs: there are cases where the code /should/ assert at run time. And worse,
there are cases where the could should assert at compile time...
How do you deal with this kind of testing, testing that things fail as they
should (at compile time and at run time)?
I'm particularly interested in anything that works well with Visual Studio 7.x
or thereabouts, but I'm thinking that I most likely will have to create makefiles?
Cheers,
- Alf
I developed for a living), and also my laziness not googling.
However.
I want to unit-test some library code I'm sort of extracting from some old code
I have.
The things that should work without error are easy to test, and it's currently
not so much code that I've considered a testing framework, although the code
size increases. I'm thinking that perhaps the popular frameworks don't support
my needs: there are cases where the code /should/ assert at run time. And worse,
there are cases where the could should assert at compile time...
How do you deal with this kind of testing, testing that things fail as they
should (at compile time and at run time)?
I'm particularly interested in anything that works well with Visual Studio 7.x
or thereabouts, but I'm thinking that I most likely will have to create makefiles?
Cheers,
- Alf