Sign in Join

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

Mailing lists / lazarus / 2001-03

dunit for testing

8 messages · 5 people ·

Reply by email Subscribe to this list Your subscription

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

Michael A. Hess
to Barbini Uberto: Have you considered to use an automatic testing tool like dunit? Bye Uberto
Barbini Uberto wrote
Have you considered to use an automatic testing tool like dunit?

Interesting tool. I had not heard of it prior to your email.

However it would require that the tool be rewritten/modified so that it could be built with FPC and the LCL. If someone would like to take on that task that would be great but for now we have enough work just finishing the LCL and the IDE itself. :-)

==== Programming my first best destiny! ==== Michael A. Hess Miracle Concepts, Inc. http://www.miraclec.com

Reply by email

Michael Van Canneyt
to Curtis White: OK, I found the DUnit project on SourceForge. But wow, it is going to take some…
Curtis White wrote 11 lines
OK, I found the DUnit project on SourceForge. But wow, it is going to take some significant work to convert it to FPC since it uses Interfaces of IUnknown. So it would take almost a complete rewrite for FPC. I think this can wait until FPC supports interfaces. It is interesting, though, that they have an implementation of DUnit for Kylix. BTW, Interfaces are a really nice feature to have. I look forward to being able to use them in FPC. Anyone know when the FPC team expects to have them implemented?

They _are_ implemented in the main branch.

Michael.

Reply by email

Cryst
to Barbini Uberto: Have you considered to use an automatic testing tool like dunit? Bye Uberto

How are the discussions on the Win32 port of lazarus going. It might be useful to bring that discussion forward to the general mailing list as there are a number of win32 programmers (me) who are interested in contributing but don't have the details needed.

Chris

Earlier message 28 lines
----- Original Message ----- From: "Michael A. Hess" To: Sent: Tuesday, March 27, 2001 9:56 AM Subject: Re: [lazarus] dunit for testing > Barbini Uberto wrote: > > > > Have you considered to use an automatic testing tool like dunit? > > Interesting tool. I had not heard of it prior to your email. > > However it would require that the tool be rewritten/modified so that it > could be built with FPC and the LCL. If someone would like to take on > that task that would be great but for now we have enough work just > finishing the LCL and the IDE itself. :-) > > -- > ==== Programming my first best destiny! ==== > > Michael A. Hess Miracle Concepts, Inc. > http://www.miraclec.com > > _________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Michael A. Hess
How are the discussions on the Win32 port of lazarus going. It might be useful to bring that discussion forward to the general mailing list as there are a number of win32 programmers (me) who are interested in contributing but don't have the details needed.

It isn't specifically discussions on the Win32 port. It is discussions (I believe a discision has been made) on rewriting how the LCL communicates with the various widget set code via the InterfaceObject. The current method while appropriate in it's time has been outgrown and better solution is needed. It needs to be easier to understand and easier for people, such as those who intend on working on the Win32 port, to be able to add other widget sets.

I believe we have come up with a schenario and attempts to test the viability of the approach are being done now. Once that is done we will start to modify teh GTKObject code to this new method. At the same time we will explain the method which will allow you to start porting the Win32 code. :-)

==== Programming my first best destiny! ==== Michael A. Hess Miracle Concepts, Inc. http://www.miraclec.com

Reply by email

Cryst
to Michael A. Hess

Sounds wonderful!

Chris

Earlier message 35 lines
----- Original Message ----- From: "Michael A. Hess" To: Sent: Tuesday, March 27, 2001 10:53 AM Subject: Re: [lazarus] dunit for testing > > How are the discussions on the Win32 port of lazarus going. It might > > be useful to bring that discussion forward to the general mailing > > list as there are a number of win32 programmers (me) who are > > interested in contributing but don't have the details needed. > > It isn't specifically discussions on the Win32 port. It is discussions > (I believe a discision has been made) on rewriting how the LCL > communicates with the various widget set code via the InterfaceObject. > The current method while appropriate in it's time has been outgrown and > better solution is needed. It needs to be easier to understand and > easier for people, such as those who intend on working on the Win32 > port, to be able to add other widget sets. > > I believe we have come up with a schenario and attempts to test the > viability of the approach are being done now. Once that is done we will > start to modify teh GTKObject code to this new method. At the same time > we will explain the method which will allow you to start porting the > Win32 code. :-) > -- > ==== Programming my first best destiny! ==== > > Michael A. Hess Miracle Concepts, Inc. > http://www.miraclec.com > > _________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Curtis White
to Barbini Uberto: Have you considered to use an automatic testing tool like dunit? Bye Uberto

OK, I found the DUnit project on SourceForge. But wow, it is going to take some significant work to convert it to FPC since it uses Interfaces of IUnknown. So it would take almost a complete rewrite for FPC. I think this can wait until FPC supports interfaces.

It is interesting, though, that they have an implementation of DUnit for Kylix.

BTW, Interfaces are a really nice feature to have. I look forward to being able to use them in FPC. Anyone know when the FPC team expects to have them implemented?

Curtis

Curtis White wrote 40 lines
Were do we find this dunit? I do a lot of Java development and we use a unit testing package called JUnit to do unit testing (part of extreme programming). It works very well and really speeds development. Once the unit test is setup (usually before the unit is actually coded), any changes to anything else in the framework (LCL or Lazarus in our case) can be tested immediately to ensure nothing was broken in that unit. This is REALLY helpful in making sure that your changes don't break anything else. If this dunit is similar (I assume it is the same thing except for Delphi), then we should really start using it (or a conversion of it to FPC). It could really help us with testing changes to ensure we don't break something else in the LCL or Lazarus. I would be happy to look into converting it to FPC and start setting up the unit tests for the existing LCL units if someone can just point me to it. Curtis "Michael A. Hess" wrote: > > Barbini Uberto wrote: > > > > Have you considered to use an automatic testing tool like dunit? > > Interesting tool. I had not heard of it prior to your email. > > However it would require that the tool be rewritten/modified so that it > could be built with FPC and the LCL. If someone would like to take on > that task that would be great but for now we have enough work just > finishing the LCL and the IDE itself. :-) > > -- > ==== Programming my first best destiny! ==== > > Michael A. Hess Miracle Concepts, Inc. > http://www.miraclec.com >

Reply by email

Curtis White
to Barbini Uberto: Have you considered to use an automatic testing tool like dunit? Bye Uberto

Were do we find this dunit?

I do a lot of Java development and we use a unit testing package called JUnit to do unit testing (part of extreme programming). It works very well and really speeds development. Once the unit test is setup (usually before the unit is actually coded), any changes to anything else in the framework (LCL or Lazarus in our case) can be tested immediately to ensure nothing was broken in that unit. This is REALLY helpful in making sure that your changes don't break anything else.

If this dunit is similar (I assume it is the same thing except for Delphi), then we should really start using it (or a conversion of it to FPC). It could really help us with testing changes to ensure we don't break something else in the LCL or Lazarus. I would be happy to look into converting it to FPC and start setting up the unit tests for the existing LCL units if someone can just point me to it.

Curtis

"Michael A. Hess" wrote 18 lines
Barbini Uberto wrote: > > Have you considered to use an automatic testing tool like dunit? Interesting tool. I had not heard of it prior to your email. However it would require that the tool be rewritten/modified so that it could be built with FPC and the LCL. If someone would like to take on that task that would be great but for now we have enough work just finishing the LCL and the IDE itself. :-) -- ==== Programming my first best destiny! ==== Michael A. Hess Miracle Concepts, Inc. http://www.miraclec.com

Reply by email