Re: Test driven development in Django framework

2012-09-08 Thread Steven Cummings
I think when people say "unit" tests to mean fully isolated tests, what they really mean is *whitebox* tests. You define the size of the unit under test and context runs from full isolation (whitebox test) to full integration/user-experience (blackbox test) -- Steven On Fri, Sep 7, 2012 at 7:39 A

Re: Test driven development in Django framework

2012-09-07 Thread Harry P
Hey, glad to hear someone's been found it useful! re: whether my unit tests are unit tests or not... some people have a very restrictive definition of what a unit test is - they want it to be 100% isolated from other tests, always mock out the filesystem and the database, etc. That's fine, but

Re: Test driven development in Django framework

2012-09-07 Thread jyria
Thank you for reply, I have been using your tutorial to learn TDD in django. One of the best I have found so far. You also talk about "unit tests" and thats what is confusing. As I understand, your tutorial examples are not unit tests in the strict meaning of the term. You have a great tutori

Re: Test driven development in Django framework

2012-09-06 Thread Harry P
Hi there, I work for a bunch of XP fanatics, so we do quite religious TDD in our Python/Django development. We start with functional/acceptance tests, which we write using Selenium, driving a real web browser, and following a test script that is essential a user story. We then write unit tes

Re: Test driven development in Django framework

2012-09-05 Thread Mike Dewhirst
On 6/09/2012 3:04am, Javier Guerra Giraldez wrote: On Wed, Sep 5, 2012 at 7:46 AM, jyria wrote: What is your experience? Is it worth it, and is it possible? I tried it and found it quite difficult to follow guideline of unit testing -- testing a unit of code, a class for example. Maybe Im just

Re: Test driven development in Django framework

2012-09-05 Thread Javier Guerra Giraldez
On Wed, Sep 5, 2012 at 7:46 AM, jyria wrote: > What is your experience? Is it worth it, and is it possible? > > I tried it and found it quite difficult to follow guideline of unit testing > -- testing a unit of code, a class for example. Maybe Im just ignorant, but > I didnt see, how can I create

Test driven development in Django framework

2012-09-05 Thread jyria
What is your experience? Is it worth it, and is it possible? I tried it and found it quite difficult to follow guideline of unit testing -- testing a unit of code, a class for example. Maybe Im just ignorant, but I didnt see, how can I create registration app only with unit tests. The only way