Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re^3: What to test in a new module

by GrandFather (Saint)
on Jan 29, 2023 at 21:30 UTC ( #11150027=note: print w/replies, xml ) Need Help??

in reply to Re^2: What to test in a new module
in thread What to test in a new module

My Google search for "test driven design" got me Test-driven_development as a first hit. That is a short article that hits the high points and directly answers your objection - the tests fail until the code they test is written and is correct (at least in the eyes of the tests).

TDD is a technique I use occasionally, but in each case I've used it the result has been spectacular success. When I have used TDD I've also used code coverage to ensure a sensibly high proportion of the code is tested. In my experience the result was seeming slow progress, but substantially bug free and easy to maintain (i.e. high quality) code as a result.

Not all projects can use TDD. My day job is writing hardware specific embedded code for in house developed systems. Testing software embedded in hardware is challenging!

Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11150027]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2023-04-02 00:16 GMT
Find Nodes?
    Voting Booth?

    No recent polls found