Two Steps Forward, One Step Back

Following my last post I integrated typed assertions into the master branch of Lazytest.

This makes some changes to the API. Test examples in the it macro can no longer simply return true or false. Instead, they must call the expect macro.

The Context type is gone, replaced by the Fixture protocol. More documentation to come. Basically, a Fixture is a pair of methods named setup and teardown. Fixtures are responsible for handling their own state.

The file watcher still works, but the new console reporter kinda sucks. I’ve got all this great failure information from the typed assertions, now I just need to figure out how to format it.

This entry was posted in Programming and tagged , . Bookmark the permalink.

3 Responses to Two Steps Forward, One Step Back

  1. hiredman says:

    I can’t be the first person to say “sounds like you are writing a monad” …

  2. Stuart says:

    I hadn’t thought about it that way. Yes, kind of. The difference is that I’m rewriting expressions instead of just wrapping functions.

  3. Pingback: Lazytest Churn - Digital Digressions by Stuart Sierra

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>