Puritan: unit testing for Pure

33 views
Skip to first unread message

Alastair Pharo

unread,
Jul 24, 2013, 4:02:56 AM7/24/13
to pure...@googlegroups.com
Hi all,

I've written a little library for unit testing in Pure, which I am calling Puritan.  I have aimed to make the syntax comparable to Ruby's RSpec, the idea being that you can write tests in a DSL that looks something like english.   It's still very young, but it works (I am using it at least).  For anyone who is interested, it has a bitbucket page with some documentation here:

https://bitbucket.org/asppsa/pure-puritan/overview

As I mention there, it needs some more functionality before it can properly be considered user-friendly.  However, if anyone does decide to pick it up at this early stage I'd be keen to know your thoughts.

Cheers,

Alastair

Albert Graef

unread,
Jul 29, 2013, 9:22:34 AM7/29/13
to pure...@googlegroups.com
Very nice! Thanks for sharing this. Would you mind if I post a news
item about this?
> --
> You received this message because you are subscribed to the Google Groups
> "pure-lang" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to pure-lang+...@googlegroups.com.
> To post to this group, send email to pure...@googlegroups.com.
> Visit this group at http://groups.google.com/group/pure-lang.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



--
Dr. Albert Gr"af
Dept. of Music-Informatics, University of Mainz, Germany
Email: agg...@gmail.com
WWW: https://plus.google.com/111193356966611167754

Albert Graef

unread,
Jul 29, 2013, 10:44:16 AM7/29/13
to pure...@googlegroups.com
On Wed, Jul 24, 2013 at 10:02 AM, Alastair Pharo <asp...@gmail.com> wrote:
> I've written a little library for unit testing in Pure, which I am calling
> Puritan.

BTW, I like the name. :) Is that a reference to John Brunner's "The
Sheep Look Up"? Or the religious movement?

Albert

Alastair Pharo

unread,
Jul 29, 2013, 11:00:53 AM7/29/13
to pure...@googlegroups.com
Hi there,

Yes great, I am more than happy for there to be a news item.

As for the name, I was thinking more along the lines of the modern colloquial use of the word to mean "prude", "killjoy" etc.  I suppose I think writing tests is a bit of a drag, so somehow that seemed appropriate.

I haven't heard of John Brunner before.  I shall have to look that up.

2013/7/30 Albert Graef <agg...@gmail.com>

Albert Graef

unread,
Jul 30, 2013, 8:55:42 AM7/30/13
to pure...@googlegroups.com
On Mon, Jul 29, 2013 at 5:00 PM, Alastair Pharo <asp...@gmail.com> wrote:
> Yes great, I am more than happy for there to be a news item.

Ok, there you go, you should be able to see it in your G+ feed now,
and it's also in the blog/news list. Sorry for the badly formatted
tweet and the missing hash tags, though, will do better next time. I'm
still learning this new-fangled social network stuff, guess the kids
are laughing now. ;-)

> As for the name, I was thinking more along the lines of the modern
> colloquial use of the word to mean "prude", "killjoy" etc. I suppose I
> think writing tests is a bit of a drag, so somehow that seemed appropriate.

Seems fair. :) Anyway, nice piece of work, thanks a lot! So far I've
only played with it, but there's no doubt that this will come in handy
when I'm writing my next Pure script. I think that once you feel that
it has matured enough, we should add a section about unit testing in
general and Puritan in particular to the manual.

> I haven't heard of John Brunner before. I shall have to look that up.

If you like dystopian science fiction, you will love his stuff. Still
a good read, even though it was written in the 1970s. :)

kp

unread,
Jul 30, 2013, 9:41:25 AM7/30/13
to pure...@googlegroups.com
That's great, just what I missed so far ...
Thank you
Kurt
Reply all
Reply to author
Forward
0 new messages