Re: [Tutor] Where to start with Unit Testing

2010-08-03 Thread Mac Ryan
On Mon, 2010-08-02 at 11:59 -0400, Che M wrote: > Mac, I found this an excellent brief overview of UT and your points > all > seem very strong to me. Thanks very much. I admit I didn't really > know > anything about the topic and was mentioning my feelings on the matter > partly to elicit enlight

Re: [Tutor] Where to start with Unit Testing

2010-08-02 Thread Che M
> Che, from the analogies you made, it looks like you might not have very > clear what Unit Testing is for. > > True, UT is a way to automate tests that otherwise you should do > manually (as per your analogy), but the test you automate with UT are > not a "one off" thing (as it is processing t

Re: [Tutor] Where to start with Unit Testing

2010-08-02 Thread Huy Ton That
One final note, that I thought might be useful to others. I've just discovered doctest, which allows you to run tests on your embedded function/class documentation. Check it out here: http://docs.python.org/tutorial/stdlib.html#quality-control On Sun, Aug 1, 2010 at 3:30 AM, Huy Ton That wrote:

Re: [Tutor] Where to start with Unit Testing

2010-08-02 Thread Huy Ton That
Thanks additionally for your insight gems. Without reading too much into it, it was quite simple to create a series of test classes which just run some expected assertion values on a small scenario of inputs and what's expected. I usually find that I learn best by dabbling around in source code,

Re: [Tutor] Where to start with Unit Testing

2010-08-01 Thread Mac Ryan
> A different analogy comes to my mind; I once saw two different sets of > people analyze data. One did it "by hand": visually inspecting > thousands > of signals herself and typing Y or N to accept or reject each signal. > The > other did it with an automated system that accepted or rejected > s

Re: [Tutor] Where to start with Unit Testing

2010-08-01 Thread Huy Ton That
All these responses are incredible, I will go through them on my venture to bring unit testing under my belt. I have never done formal unit testing in my programming career, I've just gone through way of general debugging and utilizing version control such as Mercurial. On Sun, Aug 1, 2010 at 9:4

Re: [Tutor] Where to start with Unit Testing

2010-08-01 Thread David Hutto
On Sun, Aug 1, 2010 at 9:39 PM, David Hutto wrote: > On Sun, Aug 1, 2010 at 9:31 PM, David Hutto wrote: >> On Sun, Aug 1, 2010 at 9:11 PM, Che M wrote: >>> >>> > The idea of unit testing/test driven development has remained > foreign to me throughout my time trying to learn Python--by

Re: [Tutor] Where to start with Unit Testing

2010-08-01 Thread David Hutto
On Sun, Aug 1, 2010 at 9:31 PM, David Hutto wrote: > On Sun, Aug 1, 2010 at 9:11 PM, Che M wrote: >> >> >>> > The idea of unit testing/test driven development has remained >>> > foreign to me throughout my time trying to learn Python--by choice. >>> > I want to make desktop GUI applications and I

Re: [Tutor] Where to start with Unit Testing

2010-08-01 Thread David Hutto
On Sun, Aug 1, 2010 at 9:11 PM, Che M wrote: > > >> > The idea of unit testing/test driven development has remained >> > foreign to me throughout my time trying to learn Python--by choice. >> > I want to make desktop GUI applications and I don't use MVC, so >> > the idea of writing tests strikes m

Re: [Tutor] Where to start with Unit Testing

2010-08-01 Thread Che M
> > The idea of unit testing/test driven development has remained > > foreign to me throughout my time trying to learn Python--by choice. > > I want to make desktop GUI applications and I don't use MVC, so > > the idea of writing tests strikes me as far more work--and a major > > delayer of gett

Re: [Tutor] Where to start with Unit Testing

2010-08-01 Thread David Hutto
On Sun, Aug 1, 2010 at 12:18 PM, Che M wrote: > > >> Do any of you have any feedback, strategies and best practices >> related to unit testing within Python. This is a relatively new topic >> for me. I was thinking of starting with reading the documentation >> associate with the unittest module. >

Re: [Tutor] Where to start with Unit Testing

2010-08-01 Thread Che M
> Do any of you have any feedback, strategies and best practices > related to unit testing within Python. This is a relatively new topic > for me. I was thinking of starting with reading the documentation > associate with the unittest module. The idea of unit testing/test driven development

Re: [Tutor] Where to start with Unit Testing

2010-08-01 Thread python
Mac, > My answer falls in the category "feedback" ... I'm not the OP, but I wanted to let you know that I really enjoyed your feedback - excellent writeup! Malcolm ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: h

Re: [Tutor] Where to start with Unit Testing

2010-08-01 Thread Mac Ryan
On Sun, 2010-08-01 at 03:30 -0400, Huy Ton That wrote: > Hi all, > > Do any of you have any feedback, strategies and best practices related > to unit testing within Python. This is a relatively new topic for me. > I was thinking of starting with reading the documentation associate > with the unitt

Re: [Tutor] Where to start with Unit Testing

2010-08-01 Thread Mark Lawrence
On 01/08/2010 08:30, Huy Ton That wrote: Hi all, Do any of you have any feedback, strategies and best practices related to unit testing within Python. This is a relatively new topic for me. I was thinking of starting with reading the documentation associate with the unittest module. -Huy __