Tom Harris schrieb:
> Hi,
> 
> Is there a way to pass arguments to TestCases when running tests? I have 
> a test suite that need to be configured slightly differently for 3 
> different products, and rather than do a hack I wondered if there was a 
> canonical way to do it.
> 
> I _know_ that py.test can do it trivially. I am rather stuck with 
> unittest, as I have 84 testcases, and I have to make it work tomorrow.

How about writing one test that takes arguments, and three test-methods 
that invoke it with different arguments? Or need there be commandline 
arguments or such stuff involved?

Diez
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to