Sign in Join

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

Mailing lists / lazarus / 2015-07

Continuous UnitTest Integration with the IDE

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Graeme Geldenhuys

Hi,

As anybody implemented, tried to implement, or thinking about implementing something like the Delphi TestInsight plugin?

In summary, it allows you to run unit tests continuously while you are developing. Compiling and running of the tests happen in the background. You don't have to compile and run an external Console or GUI Test Runner application. Results are show in a dockable window inside the IDE. Double clicking on a failed test takes you straight to the code in question.

YouTube demo:
https://youtu.be/om78iNNANpc

Home page:
https://bitbucket.org/sglienke/testinsight/wiki/Home

Blog posts covering the topic:
https://parnassus.co/unit-testing-with-testinsight/

http://delphisorcery.blogspot.co.uk/2015/02/testinsight-unit-testing-like-pro.html

I've got a modified Lazarus and FPCUnit GUI Test Runner that sort of allows double clicking on the failed test and it commands Lazarus IDE to navigate to that unit (thanks to IPC). This has some problems though (in finding the source units). Now I'm thinking that integrated testing might be a much better idea.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

Reply by email

Michael Van Canneyt
to Graeme Geldenhuys
Graeme Geldenhuys wrote 28 lines
Hi, As anybody implemented, tried to implement, or thinking about implementing something like the Delphi TestInsight plugin? In summary, it allows you to run unit tests continuously while you are developing. Compiling and running of the tests happen in the background. You don't have to compile and run an external Console or GUI Test Runner application. Results are show in a dockable window inside the IDE. Double clicking on a failed test takes you straight to the code in question. YouTube demo: https://youtu.be/om78iNNANpc Home page: https://bitbucket.org/sglienke/testinsight/wiki/Home Blog posts covering the topic: https://parnassus.co/unit-testing-with-testinsight/ http://delphisorcery.blogspot.co.uk/2015/02/testinsight-unit-testing-like-pro.html I've got a modified Lazarus and FPCUnit GUI Test Runner that sort of allows double clicking on the failed test and it commands Lazarus IDE to navigate to that unit (thanks to IPC). This has some problems though (in finding the source units). Now I'm thinking that integrated testing might be a much better idea.

+1 on that being a much better idea :-)

Michael.

Reply by email

Graeme Geldenhuys
to Michael Van Canneyt
Michael Van Canneyt wrote
+1 on that being a much better idea :-)

Time permitting, I'll take a closer look at the Delphi TestInsight to see exactly how it works, but it might required Project Groups (I think). Unless we implement a new Project Setting (integrated testing) or something. Then in Lazarus we only need to open and work in the Unit Test project (test driven development).

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

Reply by email