The Artima Developer Community
Sponsored Link

Python Buzz Forum
DataTest

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Ian Bicking

Posts: 900
Nickname: ianb
Registered: Apr, 2003

Ian Bicking is a freelance programmer
DataTest Posted: Feb 27, 2004 12:56 AM
Reply to this message Reply

This post originated from an RSS feed registered with Python Buzz by Ian Bicking.
Original Post: DataTest
Feed Title: Ian Bicking
Feed URL: http://www.ianbicking.org/feeds/atom.xml
Feed Description: Thoughts on Python and Programming.
Latest Python Buzz Posts
Latest Python Buzz Posts by Ian Bicking
Latest Posts From Ian Bicking

Advertisement

After writing about unittest a while ago, I got it into my mind that I wanted to make something better, especially to be friendlier to test-driven development. Several other projects were recommended in the comments, and I spent quite a while trying to use the Zope tester, but ultimately I found it unsatisfying. (Most of the time I couldn't get the Zope tester to find any of my tests, and when I did manage it I didn't understand why)

To me the problem was that not enough was being delegated to the TestCase instances, so that people couldn't override enough on their own. This included the code to find and run tests.

Anyway, after agonizing over the design for far too long, I've finally got something that feels (kind of) right to me: DataTest (download). The README describes the changes. Some of the features: (intended to be) compatible with unittest; tests can have multiple parameters, and each combination of parameters is its own selectable test instance; a test loader/runner that actively seeks out tests, and allows intelligent selection of tests. I have some other ideas for the tester as well (several of which are in other frameworks, but are actually easier than they seem at first).

I haven't had a chance to actually use the tester for useful stuff yet. I plan to convert my FormEncode tests first, as that was a driving project (since it involves lots of data input and output).

I'm very interested in comments or suggestions. I'm not confident of the design (even though I've already refactored the design several times), or of how well it addresses all the issues with test suites. But I still like it, and I think the code is relatively simple all considering, which is a good sign.

Read: DataTest

Topic: Locating the configuration files for my J2EE app Previous Topic   Next Topic Topic: Snow Sprint Report (part 1)

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use