Re: Art of Unit Testing



Christoph Zwerschke wrote:
- unittest is for *unit* testing (only) ;-)

Why would you say that? We've used it extensively for a wide ranging...

That was actually only a quote from this thread that summarizes some of the answers I got: unittest has no support for "global" fixtures, because it is intended for unit testing, not for global tests.

Fair enough, as a quote, but it's still an inaccurate statement as I hoped I've made clear in the last several posts. The need to do "global" fixtures is most definitely not inherent in acceptance-type testing, so it's incorrect to say "unittest" is limited to unit testing.


What, and break all the code that currently does "import unittest"?

Just insert the two words "punit as" between "import" and "unittest", and the code will run as before...

No thanks. I have hundreds upon hundreds of test files and no desire to change them. Luckily there's roughly a zero chance of this actually happening, so no problem. :-)


-Peter
.



Relevant Pages

  • Re: Over-denture vs. bridge?
    ... attached to the implant posts. ... It is unlikely you are going to be able to place a full arch of fixed crowns on only 6 fixtures. ... IOW, the six fixtures may be more than enough support for an overdenture, but insufficient support for a full arch of crowns. ...
    (sci.med.dentistry)
  • Re: Art of Unit Testing
    ... unittest has no support for "global" fixtures, because it is intended for unit testing, not for global tests. ...
    (comp.lang.python)