Hi All,
I like CUnit very much. That's why I suggest to further improve the output in case of a test fails.
As a developer I'd like to see the actual and expected values as fast as possible without using debugger.
Currently the output in case of a test failing is:
Suite TestSuit, Test1 had failures:
1. ./Cunit_Test.c:70 - CU_ASSERT_EQUAL(actual, 1)
For me it would be a huge improvement seeing additional information:
Suite TestSuit, Test1 had failures:
1. ./Cunit_Test.c:70 - CU_ASSERT_EQUAL(actual, 1)
actual: 2,
expected: 1
Would be nice if you could add this.
Keep going!
sawi
Anonymous
I know it's difficult to implement since you dont'know what types are given for actual and expected. But I would think something like CU_ASSERT_EQUAL_INT would be a good starting and it helps a lot.
cya sawi
+1, knowing the actual value helps a lot