Sign in Join

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

Mailing lists / fpc-devel / 2008-01

FPCunit improvement ideas

6 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Graeme Geldenhuys

Hi,

When using FPCunit with the GUI Test Runner (DUnit does this) you can select a set of tests tests to run. You don't always have to run all tests.

In the FPCUnit Text Test Runner it is always assumed that you want to run *all* tests. This is not always desired - tests should normally run quickly, but it isn't always the case.

My proposal is to implement a feature so that selected tests can be run under both Text and GUI test runners - and that selection saved for the next run. For example, select tests are stored in a INI file. On consecutive runs, the INI file is read and only the enabled tests are executed. If the INI file doesn't exist, all tests are run.

Any thoughts on this? Maybe somebody got a better solution?

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Vincent Snijders
to Graeme Geldenhuys
Graeme Geldenhuys wrote 9 lines
Hi, When using FPCunit with the GUI Test Runner (DUnit does this) you can select a set of tests tests to run. You don't always have to run all tests. In the FPCUnit Text Test Runner it is always assumed that you want to run *all* tests. This is not always desired - tests should normally run quickly, but it isn't always the case.

Selection is possible, but only on complete suite level. OTOH, if you have one suite with all tests, then you can either run one tests or all tests.

From the command line help:
--suite=MyTestSuiteName run single test suite class

Vincent

Reply by email

Graeme Geldenhuys
to Graeme Geldenhuys: When using FPCunit with the GUI Test Runner (DUnit does this) you can select a set of…

More ideas....

Other things that could be saved for Text Test Runner is the preferred output format (plain, xml, latex), show progress, stylesheet (if xml) and output file name.

Regards,
- Graeme -

Graeme Geldenhuys wrote 28 lines
Hi, When using FPCunit with the GUI Test Runner (DUnit does this) you can select a set of tests tests to run. You don't always have to run all tests. In the FPCUnit Text Test Runner it is always assumed that you want to run *all* tests. This is not always desired - tests should normally run quickly, but it isn't always the case. My proposal is to implement a feature so that selected tests can be run under both Text and GUI test runners - and that selection saved for the next run. For example, select tests are stored in a INI file. On consecutive runs, the INI file is read and only the enabled tests are executed. If the INI file doesn't exist, all tests are run. Any thoughts on this? Maybe somebody got a better solution? Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/
Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/

Reply by email

Graeme Geldenhuys
to Vincent Snijders: Selection is possible, but only on complete suite level. OTOH, if you have one suite with…
Vincent Snijders wrote
From the command line help: --suite=MyTestSuiteName run single test suite class

I know about this, sometimes you want a quick set of tests, not a whole testsuite. Or selected tests from certain testsuites.

Storing other settings like format, output file etc are also handy.

PS:
Yes I know good unit test design says you must always run all tests! I do that many times a day, but I don't always want to do it for every little change. Think 'Test Driven Development' here... ;-)

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Bogusław Brandys
to Graeme Geldenhuys: More ideas.... Other things that could be saved for Text Test Runner is the preferred…
Graeme Geldenhuys wrote 37 lines
More ideas.... Other things that could be saved for Text Test Runner is the preferred output format (plain, xml, latex), show progress, stylesheet (if xml) and output file name. Regards, - Graeme - On 09/01/2008, Graeme Geldenhuys wrote: > Hi, > > When using FPCunit with the GUI Test Runner (DUnit does this) you can > select a set of tests tests to run. You don't always have to run all > tests. > > In the FPCUnit Text Test Runner it is always assumed that you want to > run *all* tests. This is not always desired - tests should normally > run quickly, but it isn't always the case. > > My proposal is to implement a feature so that selected tests can be > run under both Text and GUI test runners - and that selection saved > for the next run. For example, select tests are stored in a INI file. > On consecutive runs, the INI file is read and only the enabled tests > are executed. If the INI file doesn't exist, all tests are run. > > > Any thoughts on this? Maybe somebody got a better solution? > > > Regards, > - Graeme - > >

By the way : there is a little problem with fpcunit GUI runner with a lot of tests - after Run or Run all tests treeview is fully expanded which makes hard to find a particular test I'd like to run after.

An popup menu to fold all treeview items to the point where each test class is visible but without detailed tests is highly needed.

Boguslaw

Reply by email

Graeme Geldenhuys
to Bogusław Brandys
Bogusław Brandys wrote 7 lines
By the way : there is a little problem with fpcunit GUI runner with a lot of tests - after Run or Run all tests treeview is fully expanded which makes hard to find a particular test I'd like to run after. An popup menu to fold all treeview items to the point where each test class is visible but without detailed tests is highly needed.

I remember another annoyance - something about the tree scrolling when I don't want it to, but can't remember off the top of my head when that is. Next time I find it, I'll fix it. Oh, I'm not referring to the scrolling while a tests are running - that's fine.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email