It would be very useful to report assertion failure as
soon as they happen, and not just report about the line
number later.
For example, a for loop could be testing several
parameter combinations. I want to know which one failed:
for ( param = 0 ; param < N ; param++ )
{
printf( "now testing param %u\n", param );
CU_ASSERT( func(param) );
}
Currently the output comes after all the tests have
run, and not immediately. This makes it impossible to
associate a failure with the param value causing the
failure.
Some sort of interface, a user defined callback even,
would help a lot.
Anonymous
Logged In: NO
more generally, I think the need is that Cunit display the values of variables checked when assert failed.