[py-dev] Thanks a lot for py.test!
François Pinard
pinard at iro.umontreal.ca
Fri Oct 28 16:52:24 CEST 2005
[holger krekel]
> Actually we should also think about how to allow disabling tests at
> module level or even at directory level, i guess.
At module level, it could be a mere "disabled" global variable. That
would nicely parallel what happens at class level.
For individual function level (if ever needed), it could be a "disabled"
attribute to the function itself. Maybe!
> [...] there is the long standing idea of properly connecting
> tags/keywords to tests on directory, module and class level (these
> would all apply to groups of test) and directly on a test function.
> Implementing this as static tags should be rather straight forward.
I did not witness previous discussions on this topic, so the following
naive ideas. Could it be a "tags" variable, usable in exactly same
contexts as "disabled"? Its value could be a tuple of strings, or a
single string. Written without parentheses, of course! :-) This being
tied to some ``-t TAGS`` option to the py.test driver.
> When it comes to "conftest.py" files there is a lot that you can do,
> basically take over test collecting and running in subdirectories
> which is what is done for ReST or for PyPy.
The documentation lets me with the feeling one could do a lot. But so
far, I do not think I needed that lot. :-) I have a lot already.
> > All in all, it seems that one can do lots, by using nothing more than
> > the simpler parts of py.test. It's much comforting. Thanks, gang!
> hehe, many thanks for your feedback! might make it to the
> web page some time, if you don't mind :-)
No problem with me. If you ever do, please be kind enough to correct my
English mistakes (orthographical or stylistic).
--
François Pinard http://pinard.progiciels-bpi.ca
More information about the py-dev
mailing list