Tests, tests, tests

H

Thread Starter

hopfgartner

Dear list memebers,

looking through the files in the LinuxPLC source tree I noted that very few attention is put to tests.

Personally I´m a fan of tests, since they usually provide a good feedback when changes to the code are made, most of all if more then one developer is involved in the development. And, once that public releases are made, much stress is taken from the developers, since many bugs con be found
before the release.

Please comment,

Peter

_______________________________________________
LinuxPLC mailing list
[email protected]
http://linuxplc.org/mailman/listinfo/linuxplc
 
hopfgartner:
> looking through the files in the LinuxPLC source tree I noted that very
> few attention is put to tests.

To some extent the demos fill that role, but you're right, we should have formal tests.

> Personally I´m a fan of tests, since they usually provide a good feedback
> when changes to the code are made, most of all if more then one developer
> is involved in the development.

Yup, that'd be our situation.

I guess if you'd like to write some tests, we'll put them in /test/whatever directories and write a toplevel test-all script in the /test directory to run everything.

Welcome to the project!

Jiri
--
Jiri Baum <[email protected]> http://www.csse.monash.edu.au/~jirib
MAT LinuxPLC project --- http://mat.sf.net --- Machine Automation Tools
tlhIngan Hol jatlhlaHchugh ghollI' Hov leng ngoDHommey'e' not yISuD
Never bet on Star Trek trivia if your opponent speaks Klingon. --Kung Foole

_______________________________________________
LinuxPLC mailing list
[email protected]
http://linuxplc.org/mailman/listinfo/linuxplc
 
P

Peter Hopfgartner

Automake allows a quite elegant handling of a test target for make. Once that I will have the basic build stuff ready I will try to look for more details.

Anyway, I think that the demo have only a very low coverage of LinuxPLC, most of the program will not be testes by them. It would be possible to thing of specific tests for the single modules of LinuxPLC.

I must admit, I'm curently affascinated by XP programming (not M$, but the programming paradigm). XP says even, that you should write the test BEFORE you write the code. I mean, there's already a lot of discussion about XP vs. classical software project management. Anyway, some of the thing they say make a lot of sense (for those interested, look at the titles by Kent Beck).

Best regards,

Peter


_______________________________________________
LinuxPLC mailing list
[email protected]
http://linuxplc.org/mailman/listinfo/linuxplc
 
Top