[Distutils] RFC: Standard Declaration of tests in eggs
David Fraser
davidf at sjsoft.com
Fri Jan 5 16:36:08 CET 2007
Jim Fulton wrote:
> Here is a rough draft proposal for declaring tests in eggs:
>
> Introduction
> ============
>
> Software packages should have automated tests. Consumers of
> packages will often want to run these tests. Tools should be able to
> do this automatically. This proposal seeks to provide a way for
> automated tools to discover tests in distributions, including eggs, so
> that tests can be run or so that test runners can be automatically
> created to run the tests.
>
> Proposal
> ========
>
> This proposal aims to be extremely simple. It has 2 parts:
>
> 1. A 'test_suite' entry point is defined. An egg can provide zero or
> more test_suite entry points. These entry points will define
> callable objects that can be called without arguments and that
> return unittest test suites.
>
How would this work if for example, you're using an alternative testing
framework (like py.test) for your test?
It would be nice to be able to bootstrap it :-)
> 2. An optional 'tests' extra is defined. When creating test runners
> or dynamically loading distributions to load tests, any
> distributions listed in extra requires for the 'tests' extra shall
> be included in the working set for the test runner.
>
Great, so at least the testing framework could be declared as a dependency
David
More information about the Distutils-SIG
mailing list