Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2017-07

FPCUnit/DUnit: How abort all other tests?

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Marcos Douglas B. Santos

Hi,

I'm using FPCUnit and DUnit to test code.
I would like to know if there is a way to abort all other test and an specific one fail. I mean, if some "special tests" fail, will be a waste of time to continue.

Best regards,
Marcos Douglas

Michael Van Canneyt
to Marcos Douglas B. Santos
Marcos Douglas B. Santos wrote 6 lines
Hi, I'm using FPCUnit and DUnit to test code. I would like to know if there is a way to abort all other test and an specific one fail. I mean, if some "special tests" fail, will be a waste of time to continue.

No, there currently is not. But such a thing can be easily added.

Michael.

Graeme Geldenhuys
to Marcos Douglas B. Santos: I'm using FPCUnit and DUnit to test code. I would like to know if there is a way to abort…
Marcos Douglas B. Santos wrote
I would like to know if there is a way to abort all other test and an specific one fail. I mean, if some "special tests" fail, will be a waste of time to continue.

There is such functionality in FPTest (the DUnit2 fork for Free Pascal). Take a look at the EarlyExitCheck() check procedure. For more detailed information, read the docs/DUnit2Description.html page in the repository, and then jump to the "Summary Level Checks" section.

FPTest (and DUnit2 from SF.net) are backwards compatible with DUnit v9.4, but also has many more improvements and features.

The FPTest code repository can be found here:

https://github.com/graemeg/fptest

or cloned directly via:

git clone git://github.com/graemeg/fptest.git

Regards,
Graeme

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp
Marcos Douglas B. Santos
to Graeme Geldenhuys
Graeme Geldenhuys wrote 14 lines
On 2017-07-22 21:50, Marcos Douglas B. Santos wrote: > > I would like to know if there is a way to abort all other test and an > specific one fail. I mean, if some "special tests" fail, will be a > waste of time to continue. There is such functionality in FPTest (the DUnit2 fork for Free Pascal). Take a look at the EarlyExitCheck() check procedure. For more detailed information, read the docs/DUnit2Description.html page in the repository, and then jump to the "Summary Level Checks" section. FPTest (and DUnit2 from SF.net) are backwards compatible with DUnit v9.4, but also has many more improvements and features.

Thank you.

Best regards,
Marcos Douglas