Re: Unit tests

2009-12-27 Thread anatoly techtonik
On Sat, Dec 26, 2009 at 10:17 PM, Ben Finney ben+deb...@benfinney.id.au wrote:

 Quoting anatoly techtonik techto...@gmail.com:
  Even if most users don't need them, tests greatly increase the value
  of bugreports and doesn't bloat python packages too much.

 True. What do other people think of the issue?

 I think the judgement of “not bloat the package too much” is to be made
 with consideration of those users striving for a small system as their
 primary concern, e.g. those trying to install onto embedded systems with
 minimal storage.

Are there any such people here? Do they prefer different package
repository with stripped down binary packages like
http://wiki.debian.org/Embedded_Debian ?

 Also, the dependencies of a package that includes unit tests are
 generally greater; a significant amount of Python package unit test
 suites require additional packages, e.g. ‘python-nose’, that are not
 dependencies for the normal operation of the package.

Need more precise statistics. In my opinion 80% use standard unittest
and doctest, especially small packages or modules. If there are
dependencies like 'python-nose' - they would be optional anyway.

-- 
anatoly t.


--
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Unit tests

2009-12-26 Thread W. Martin Borgert

Quoting anatoly techtonik techto...@gmail.com:

Even if most users don't need them, tests greatly increase the value
of bugreports and doesn't bloat python packages too much.


True. What do other people think of the issue?

If unit tests were in the package, reportbug could automatically
run them on a bug report. Does someone do this already, maybe?


--
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Unit tests

2009-12-26 Thread Guy Hulbert
On Sat, 2009-26-12 at 17:13 +0100, W. Martin Borgert wrote:
 Quoting anatoly techtonik techto...@gmail.com:
  Even if most users don't need them, tests greatly increase the value
  of bugreports and doesn't bloat python packages too much.
 
 True. What do other people think of the issue?

They should only be in the source package.

 
 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 ?

 

-- 
--gh



-- 
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Unit tests

2009-12-26 Thread Ben Finney
W. Martin Borgert deba...@debian.org writes:

 Quoting anatoly techtonik techto...@gmail.com:
  Even if most users don't need them, tests greatly increase the value
  of bugreports and doesn't bloat python packages too much.

 True. What do other people think of the issue?

I think the judgement of “not bloat the package too much” is to be made
with consideration of those users striving for a small system as their
primary concern, e.g. those trying to install onto embedded systems with
minimal storage.

Also, the dependencies of a package that includes unit tests are
generally greater; a significant amount of Python package unit test
suites require additional packages, e.g. ‘python-nose’, that are not
dependencies for the normal operation of the package.

-- 
 \  “Any intelligent fool can make things bigger and more complex… |
  `\It takes a touch of genius – and a lot of courage – to move in |
_o__)the opposite direction.” —Albert Einstein |
Ben Finney


-- 
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Unit tests

2009-12-25 Thread W. Martin Borgert

Quoting anatoly techtonik techto...@gmail.com:

Python policy is silent about unit tests. Should they be stripped? Or
should they be Debianized or left as-is?


Just my opinion: Unit tests should be in the source package, but not
in the binary package. Most users don't need them, and if somebody
wants to try them, they can easily fetch the source package.

Btw. What's wrong with trac-accountmanager? It does work for me.


--
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Unit tests

2009-12-25 Thread anatoly techtonik
On Fri, Dec 25, 2009 at 6:01 PM, W. Martin Borgert deba...@debian.org wrote:
 Quoting anatoly techtonik techto...@gmail.com:

 Python policy is silent about unit tests. Should they be stripped? Or
 should they be Debianized or left as-is?

 Just my opinion: Unit tests should be in the source package, but not
 in the binary package. Most users don't need them, and if somebody
 wants to try them, they can easily fetch the source package.

Even if most users don't need them, tests greatly increase the value
of bugreports and doesn't bloat python packages too much.

 Btw. What's wrong with trac-accountmanager? It does work for me.

Nevermind. I've forgot to enable it in config when switched from local
.egg to global version installed with aptitude.

Now I'm struggling with TracDeveloper plugin that doesn't want to
drill down data in template debugger.

-- 
anatoly t.


-- 
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org