Sign in Join

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

Mailing lists / fpc-pascal / 2013-10

FPCUnit tests without Lazarus

5 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

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

luciano de souza

Hello all,

FPCUnit is a very good feature to test Pascal applications. At "uses" clause, it's needed to declare "fpcunit" e "testregistry". It's also necessary to use the Console Test Runner. Yes, it's a good approach.

Nowever, "fpcunit" is on the FPc core and "TestRegistry" and "console Test Runner" on the Lazarus units.

On the Lazarus wiki, I have read that it's also possible to test applications only using "fpcunit". I was interested in this idea. I am blind and I program only using FPC. As Lazarus units regards to graphical features, it seems to be that I have no reasons to install it. If it was possible to use FPCUnit without Lazarus, yes, I really would like to know how it can be done.

On the wiki, I have read that FPCUnit without Lazarus is a simple approach. My needs are very simple, so why not to try it?

What do you can say me about FPCUnit without Lazarus? Or more broadly, which would be your strategy to automatize tests if Lazarus didn't exist?

Regards,

Luciano de Souza

Reply by email

Michael Van Canneyt
to luciano de souza
luciano de souza wrote 8 lines
Hello all, FPCUnit is a very good feature to test Pascal applications. At "uses" clause, it's needed to declare "fpcunit" e "testregistry". It's also necessary to use the Console Test Runner. Yes, it's a good approach. Nowever, "fpcunit" is on the FPc core and "TestRegistry" and "console Test Runner" on the Lazarus units.

This is not correct. testregistry and consoletestrunner are part of FPC. I run all my tests without reference to lazarus.

Michael.

Reply by email

luciano de souza
to Michael Van Canneyt

Yes, you are right. Now, I observe that we have two foldders: fpcunit and fcl-fpcunit. The missing units were in the last one.

I don't know why I made this confusion. Sorry!

2013/10/18, Michael Van Canneyt :

Show quoted text 21 lines
On Fri, 18 Oct 2013, luciano de souza wrote: > Hello all, > > FPCUnit is a very good feature to test Pascal applications. At "uses" > clause, it's needed to declare "fpcunit" e "testregistry". It's also > necessary to use the Console Test Runner. Yes, it's a good approach. > > Nowever, "fpcunit" is on the FPc core and "TestRegistry" and "console > Test Runner" on the Lazarus units. This is not correct. testregistry and consoletestrunner are part of FPC. I run all my tests without reference to lazarus. Michael. _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Luciano de Souza

Reply by email

Sven Barth
to luciano de souza

No need to be sorry. Sometimes one simply doesn't "see" the obvious ;)

Regards,
Sven

luciano de souza wrote 29 lines
Yes, you are right. Now, I observe that we have two foldders: fpcunit and fcl-fpcunit. The missing units were in the last one. I don't know why I made this confusion. Sorry! 2013/10/18, Michael Van Canneyt : > > > On Fri, 18 Oct 2013, luciano de souza wrote: > >> Hello all, >> >> FPCUnit is a very good feature to test Pascal applications. At "uses" >> clause, it's needed to declare "fpcunit" e "testregistry". It's also >> necessary to use the Console Test Runner. Yes, it's a good approach. >> >> Nowever, "fpcunit" is on the FPc core and "TestRegistry" and "console >> Test Runner" on the Lazarus units. > > This is not correct. testregistry and consoletestrunner are part of FPC. > I run all my tests without reference to lazarus. > > Michael. > _______________________________________________ > fpc-pascal maillist - > http://lists.freepascal.org/mailman/listinfo/fpc-pascal >

Reply by email

Graeme Geldenhuys
luciano de souza wrote
I don't know why I made this confusion. Sorry!

Maybe you updated FPC a while back without doing a 'make clean' before the time - thus old or renamed directories and units still stayed behind. This was/is a problem for many.

Regards,
Graeme

Reply by email