#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2013
    Posts
    1
    Rep Power
    0

    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?
  2. #2
  3. Contributing User
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Aug 2011
    Posts
    4,997
    Rep Power
    481
    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]Code tags[/code] are essential for python code and Makefiles!

IMN logo majestic logo threadwatch logo seochat tools logo