Feed Sign in with OpenID OpenID

Simon Willison’s Weblog

Atom autodiscovery test suite

Mark Pilgrim has released the Atom autodiscovery test suite, comprising 148 tests:

When we say that Atom is going to have better specs, validators, and conformance tests than anything you’ve ever seen before, this is what we’re talking about.

Mark’s atomautodiscovery.py (based on Python’s sgmllib module) passes all of the tests using a surprisingly small amount of actual code. The neatest thing about the test suite is that each test provides a <link rel="next" ... attribute pointing to the next test in the suite. atomautodiscovery.py uses these links in its test() function to run through every test in the suite, meaning that new tests can be added without modifying the test execution code.

This is Atom autodiscovery test suite by Simon Willison, posted on 20th December 2003.

View blog reactions

Next: I've ordered my PowerBook

Previous: Open Mosix

4 comments

  1. I followed the links and I'm not immensly confused as to what any of this is talking about. :) What is autodiscovery?

    Bryan - 21st December 2003 04:17 - #

  2. I am not immensly confused either, but sometimes I am. Is that like "You don't have to be immensly confused to work here, but it helps." [sorry mate, could not resist]

    Sam - 21st December 2003 19:52 - #

  3. Put it this way Si, if this were a lecture, I'd be buying you a burger in the Melting Pot afterwards for you to explain it. What say you illuminate us and I'll owe you one when you get back? If you'd been here today you would have got a roast beef dinner too...

    Meri - 22nd December 2003 22:05 - #

  4. When we say that Atom is going to have better specs, validators, and conformance tests than anything you've ever seen before, this is what we're talking about.

    That's all well and good, but will it be documented well enough to make it easy for regular dumb shmoes like me to implement?

    Bob - 23rd December 2003 18:36 - #

Comments are closed.

Previously hosted at http://simon.incutio.com/archive/2003/12/20/testFu

A django site