• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

xUnit design guide

 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Anyone ever seen anything written up about the design process that goes into developing a new xUnit framework? I've considered creating a JessUnit; where do you suppose I should start?
 
Ranch Hand
Posts: 173
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't know of any design guides for new implementations of xUnit. The JUnit design is documented in the JUnit Cook's Tour. NUnit was originally a JUnit port, but it was rewritten (redesigned?) to take advantage of the unique features (e.g., attributes) of .NET. I suppose you could download the source code for many/most/all of the xUnit frameworks and run some kind of UML diagram generation tool as a start to looking for the similarities and differences from a high level.

Craig
[ August 10, 2004: Message edited by: Craig Demyanovich ]
 
author
Posts: 87
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you read the original paper, "Smalltalk Testing with Patterns", which you'll find online, Kent wrote the paper in a kind of literate programming style. It includes enough information to get starting writing your own xUnit implementation.

Kent's TDD By Example also shows you how to build one in Python, so you might find that especially useful.
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Ernest Friedman-Hill:
where do you suppose I should start?


How about trying to write down pseudo-tests you'd like to be able to write when developing an application based on a rule engine like Jess, and then trying to figure out how you could enable that kind of testing?
reply
    Bookmark Topic Watch Topic
  • New Topic