Re: Unittests and coverage

2007-06-27 Thread Michal
> The approach here will be to write your own test runner method. When > you call 'manage.py test', Django is effectively calling a method > called django.test.simple.run_tests(); this method sets up the test > environment, finds the tests, runs the tests, and cleans up the test > environment. Th

Re: Unittests and coverage

2007-06-26 Thread Russell Keith-Magee
On 6/26/07, Michal <[EMAIL PROTECTED]> wrote: > > Hello, > I try to write test together with coverage [1]. This tool could tell me, > which lines of code was or wasn't executed and therefore tell, how my > tests are (or aren't) "superior". > > I put initial code for coverage into setUp, and cleanu

Unittests and coverage

2007-06-25 Thread Michal
Hello, I try to write test together with coverage [1]. This tool could tell me, which lines of code was or wasn't executed and therefore tell, how my tests are (or aren't) "superior". I put initial code for coverage into setUp, and cleanup to tearDown method of Testcase class. Problem is, that