New submission from Austin Bingham <austin.bing...@gmail.com>:

In the discussion about adding support for parameterized tests (issue 7897), it 
seemed clear that parameterizing individual tests was a different issue from 
parameterizing TestCases. This, then, is a request to support parameterization 
of TestCases.

The fundamental idea is that one should be able to define a TestCase - 
fixtures, individual tests, etc. - and then be able to reuse that TestCase with 
different sets of parameters. This should all mesh cleanly with the rest of the 
unittest system, though it's not entirely clear what that entails.

As a motivation, consider a TestCase that tests the public API for a database 
abstraction system. The abstraction may work against any of a number of 
backends, but the public API remains the same for each. A parameterized 
TestCase would let you write one test for the public API and then run it for 
each of the backends.

----------
components: Tests
messages: 140784
nosy: abingham
priority: normal
severity: normal
status: open
title: Support parameterized TestCases in unittest
type: feature request
versions: Python 2.7, Python 3.2

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12600>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to