[Python-ideas] Builtin test function
Steven D'Aprano
steve at pearwood.info
Thu Mar 19 11:48:53 CET 2009
On Thu, 19 Mar 2009 08:59:08 pm Fredrik Johansson wrote:
> There's been some discussion about automatic test discovery lately.
> Here's a random (not in any way thought through) idea: add a builtin
> function test() that runs tests associated with a given function,
> class, module, or object.
Improved testing is always welcome, but why a built-in?
I know testing is important, but is it so common and important that we
need it at our fingertips, so to speak, and can't even import a module
first before running tests? What's the benefit to making it a built-in
instead of part of a test module?
--
Steven D'Aprano
More information about the Python-ideas
mailing list