User forums > Using Code::Blocks

Doing unit tests (cppunit)

<< < (2/5) > >>

thomas:
In my opinion, unit testing is a way of moronizing a process. Yes, I know, moronizing processes is very much "en vogue" these days, but I prefer to do it the good old way.

The industry pays millions and millions for a very similar business process concept and loses billions because of it every year. All those ISO 900[123] certification processes do nothing different than unit testing. They set up a protocol and that protocol has to be followed. Also, the process is documented at discrete points defined by the protocol. If you pass those milestones, everything is good, otherwise it is not.
The problem is that it does not work! Different from what the smooth-tongued advocates tell you, this does not detect key problems. What it detects is violation of the protocol, nothing else.

I think that a system that every monkey can use (passed test: yes or no?) is good for some things. However, personally I still prefer to validate manually. :)

Michael:

--- Quote from: thomas on February 25, 2006, 05:46:42 pm ---The industry pays millions and millions for a very similar business process concept and loses billions because of it every year. All those ISO 900[123] certification processes do nothing different than unit testing. They set up a protocol and that protocol has to be followed. Also, the process is documented at discrete points defined by the protocol. If you pass those milestones, everything is good, otherwise it is not.
The problem is that it does not work! Different from what the smooth-tongued advocates tell you, this does not detect key problems. What it detects is violation of the protocol, nothing else.

--- End quote ---

Years ago during my studies, I have had an introduction of all the ISO 900[123] & ISO 1400[...] bla bla :). I am not sure with computer, but in the domain of the ecotoxicology, these protocols and the tests they described seemed to be a relatively good way to go (their costs were one of the main negative points anyway :(). If really effective or not, I am not sure (the postgraduated course related specifically to the ISO topic was really too much expensive for most of the students :(). IMHO, they should not take as unique reference as they do not are perfect and their costs are not to underestimated.

Best wishes,
Michael

thomas:
My experience with the indroduction of ISO 9000 in a large general hospital some years ago was a 50% increase in administrative work for everybody (and a respective overall decrease in patient care).
Half a dozen new administrative positions filled with entirely unqualified people doing assessment and quality control (read: prevent more qualified people from doing their work, to justify their own position), and no improvements whatsoever.  :P

Game_Ender:
I am still failing to see how designing a class to X, then writing test code that test to make sure it does X, and running those test every time to tweak the class is a bad thing.  Either you, or the computer is going to test that class, and I think we can all agree this is something a computer can do faster (we are using computer right now aren't we).

To bring this thread a little more back to topic.  There is a wxWidgets test runner written for cppunit.  So that interface could be used and then you just have to integrate it with CB.

Michael:

--- Quote from: thomas on February 25, 2006, 07:23:52 pm ---My experience with the indroduction of ISO 9000 in a large general hospital some years ago was a 50% increase in administrative work for everybody (and a respective overall decrease in patient care).

--- End quote ---

Yes, this is a ISO negative point.


--- Quote from: thomas on February 25, 2006, 07:23:52 pm ---Half a dozen new administrative positions filled with entirely unqualified people doing assessment and quality control (read: prevent more qualified people from doing their work, to justify their own position), and no improvements whatsoever.  :P

--- End quote ---

I think the problem come from unqualified people doing assessment and quality control. This will hurts more than be useful.

The course mentioned above was to give students who decided to specialize in ISO (and have the money for doing that :)) a relatively good preparation. One time I was speaking with a person working in a pharmaceutical laboratory who was searching someone for an opened position of responsible for quality control of the whole production chain (from the beginning until the end). The learning part of this position was of more than 1 years, because all what she/he had to know/follow was written in several huge books (encyclopedia format :)). Moreover, it was requested that the person "accepted" to work for around 10 years (the laboratory did not want to invest a lot of money and time during more than one year for someone who will leave in 2-3 years :)).

Personally, I think that ISO could be useful if done correctly. If not it is just a waste of money and nothing else.

Best wishes,
Michael

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version