Still it would be nice to be able to turn on/off a mode in which the
TESTs made the same report for success on each assertion, as on a
failure. For example to take a look at the specific expected and
actual values that are being compared/tested .
Peter Schwenn
I got what I needed simply by embedding "std::cout << .... " as needed
within the TESTs.
Still it would be nice to be able to turn on/off a mode in which the
TESTs made the same report for success on each assertion, as on a
failure. For example to take a look at the specific expected and
actual values that are being compared/tested .
Peter Schwenn
On Dec 15, 3:21 pm, pschwenn <pschw...@gmail.com> wrote:
> Googletesters,
>
> I there a way to turn on and off a very verbose mode for all EXPECT/
> ASSERT so that the values, tolerances and type of assertion are all
> output. In order to test the testing.
>
> Peter Schwenn
My concern was not with the correctness of Gtest.
The reason that I would like to see the assertion values is that our
both our "expected" values and "actual" values (ship hydrostatics) are
both (usually), not constants which we enter and of course can easily
examine, but the results of lengthy calculations, whose values do not
always fall into expected ranges, and which we don't see. A verbose
mode for a successful assertion would make it easy for use to examine
and compare the thousands of such values we generate. And since our
TOLerance are usually not 0.0, it would provide an easy way for us to
examine the discrepancies.
Perhaps it would be a convenience serving mostly us and not many
others as most Gtest users may be quite aware of what there expected
values are.
Thanks
On Dec 17, 6:30 am, Vlad Losev <vl...@google.com> wrote:
> Hi Peter,
>
In that case, don't you want to assert that the "expected" values are
in range? It's better than eye-balling them.
--
Zhanyong
Vlad,
My concern was not with the correctness of Gtest.
The reason that I would like to see the assertion values is that our
both our "expected" values and "actual" values (ship hydrostatics) are
both (usually), not constants which we enter and of course can easily
examine, but the results of lengthy calculations, whose values do not
always fall into expected ranges, and which we don't see. A verbose
mode for a successful assertion would make it easy for use to examine
and compare the thousands of such values we generate. And since our
TOLerance are usually not 0.0, it would provide an easy way for us to
examine the discrepancies.