On Tue, 16 Apr 2013, Graeme Geldenhuys wrote:

On 16/04/13 08:14, Michael Van Canneyt wrote:
.... lack of warnings about
tests that don't actually call any AssertXXX() methods,

I have lots of such methods ?
   if xyz then
     fail()


Uh... here is an example of what I am talking about.



Yes a simple example, but this issue is very possible in complex tests,
or if the developer got sidetracked. And note, FPCUnit reported no
problems or warnings at all.

Of course not.

And here is the FPTest results:


graemeg@ubuntu:/tmp$ ./project2

FPTest / Testing
.W
Time: 00:00:00.000


OK: 1 tests
There was 1 warning:

 1) project2.TMyTestCase.SilentFailure: EPostTestWarning
    at $00000000004001A0
No checks executed in TestCase

I understand, but then I'd be stuck with lots of useless warnings, since there is no way to differentiate a real from a false one.

Better no warnings than lots of false warnings.

Michael.

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to