Re: [Pypentago-devel] Code styleguide
Status: Pre-Alpha
Brought to you by:
segfaulthunter
From: Hardik M. <har...@gm...> - 2008-06-03 18:56:46
|
Hi guys, Unit tests are actually meant to test a small, independent component. You should in no case write unit tests for a huge software project (these tests are called functional tests ) but divide that project into small independent (this is more important) components and test the behavior of those components. Apart from providing the safety-net while refactoring, writing first the unit tests and then developing the corresponding component improves the design of your project because you automatically modularize your project. Anyway, this is just my opinion. If we can refactor the code without unit tests, it would be good to avoid the overhead. regards, Hardik On Tue, Jun 3, 2008 at 6:59 PM, J. Kovacs <ko...@fr...> wrote: > I can see both sides of it. > > Unit testing is good and would be very professional. Plus it would be a > good chance for me to learn more about PyUnit and unit testing in general. > > but... > > It does also seem like a lot of extra work and perhaps overkill for this > sized project. > > Sorry I did not break the tie. > > > BTW, > http://svn.browsershots.org/trunk/devtools/pep8/pep8.py > is a source code checker to validate a file is in PEP8 format.(i think) > No idea if it works well or not, just a thought. > > > > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Pypentago-devel mailing list > Pyp...@li... > https://lists.sourceforge.net/lists/listinfo/pypentago-devel > |