Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^4: RFC: How did I do writing my first test?

by stevieb (Canon)
on Sep 28, 2020 at 01:51 UTC ( [id://11122281]=note: print w/replies, xml ) Need Help??


in reply to Re^3: RFC: How did I do writing my first test?
in thread RFC: How did I do writing my first test?

"This is why you should write full-coverage testsuites — in the course of testing every path, you are likely to find edge cases that you had not recognized before."

An API (or any code) should have tests written before, during and after completion. Especially after the documentation is completed, to verify.

You're right about the edge cases. They get found in testing, and then become tests themselves.

If one doesn't find issues when running their test suites against their code after significant updates, the test suite is insufficient.

  • Comment on Re^4: RFC: How did I do writing my first test?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-04-19 14:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found