April 23rd, 2013, 04:01 AM
When to use what testing framework?
Since there are multiple frameworks available like unittest, doctest, nosetest, unitest2, pytest.
Based on which I have few questions
1.which is the best framework which will suffice all the requirements. (ie parameterization, reporting etc)
2. For the same project can we use multiple frameworks?
April 23rd, 2013, 11:44 AM
doctests and unittest coexist quite well.
nosetest, I think, is built atop unittest.
If nosetest is free I'd use it if I hadn't already built an infrastructure for unittest. I like doctest because the docstring shows what your function can do and is available when the function is available.
I use assertions in other computer languages.
I've never heard of the other two.
[/code] are essential for python code and Makefiles!