Keeping score in test-driven development with Python, PyLint, unittest, doctest, | Linux Today

Keeping score in test-driven development with Python, PyLint, unittest, doctest,

Written By
TH
Terry Hancock
Nov 20, 2009

[ Thanks to steve
hill
for this link. ]

“This is true even when simple test runners are used,
but I decided to make things a little snappier by including a
couple of other types of measurement and generating a “scorecard”
for the present state and progress of my Python software projects.
Here’s how it works, and a download link for my script, which I
call “PyRate”.

“Programming is one of the most extreme examples of delayed
gratification — you can work for months without having
anything to show for it (or at least nothing that would convince
your family that it was worth all that time and trouble). This can
be really demoralizing, especially if you have any doubts about
your abilities to begin with.

“Testing helps. You won’t be able to convince many other people
of your progress, but at least you will have an objective measure
telling you how much closer to your goal you are every day you work
on the project. Also, because automated testing catches bugs right
when they happen, it’s usually much easier to track them down
(because you know what you’ve changed since the previous
test).”


Complete Story

TH

Terry Hancock

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.