[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Unit tests



On Sat, Dec 26, 2009 at 19:11, Guy Hulbert <gwhulbert@eol.ca> wrote:
> On Sat, 2009-26-12 at 17:13 +0100, W. Martin Borgert wrote:
>> Quoting "anatoly techtonik" <techtonik@gmail.com>:
>> If unit tests were in the package, reportbug could automatically
>> run them on a bug report. Does someone do this already, maybe?
>
> Can reportbug be modified to download a source package and run tests ?

Short answer: no.

Detailed answer: no, because:

- it bloats reportbug to do something that's not meant to (it _reports bugs_)
- how to recognize packages that have unit tests and those that haven't?
- where are those unit tests and how to execute them? more generally:
there is no standard way to run unit tests.
- what if unit tests need additional dependencies (not present on the
user system) to be executed?

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi


Reply to: