Re: Art of Unit Testing



Christoph Zwerschke <zwerschke@xxxxxxxxxxxxxxxxxxxxx> writes:

> Would it make sense to add "globaleSetup" and "globalTearDown" methods
> to the TestCase class? I think at least it would not harm
> anybody. Where should such proposals be submitted?

In general that's not such a good idea. If you build your tests like
that, it gets hard to know which test really went wrong, and you might
get the situation where the whole set of tests works, but depend on each
other in some way. (This can also happen for more obscure reasons, and
is worth looking out for whichever way you do it.)

So, rebuilding the environment for the each before every single test is
generally worth the overhead.

--
Björn Lindström <bkhl@xxxxxxxxxxxxxxxxx>
Student of computational linguistics, Uppsala University, Sweden
.



Relevant Pages

  • Re: Art of Unit Testing
    ... to the TestCase class? ... I think at least it would not harm anybody. ... Where should such proposals be submitted? ... generally worth the overhead. ...
    (comp.lang.python)
  • Re: Bye Bye Donald
    ... did absolutely nothing worth talking about and a bit of harm along the ... They will make an attempt at "sweetness and light" in the short term. ... However it will all get nasty when it needs to because the next fight is ...
    (uk.rec.motorcycles)
  • Re: Columbia Ejection Seats
    ... than a few sliderules' worth of "design" behind them. ... proposals is a better word. ...
    (sci.space.shuttle)
  • Re: Chaos?
    ... Imo, it's probably because of the increasing mindless skepticism of the modern world not believing magic works, and therefore not considering it worth the effort of tabooing... ... It's also worth noting that at times, what was illegal was the harm, ... removed harmful magick from the legal arena. ... 'Fraudulent magick' is illegal IIRC under the laws that replaced the ...
    (uk.religion.pagan)
  • Re: Bye Bye Donald
    ... Alison Hopkins wrote: ... He did absolutely nothing worth talking about and a bit of harm ... I disagree. ...
    (uk.rec.motorcycles)