Live data from Hacker News

Elegant tests with Truth Tables

brewhouse.io

11–12 of 12 posts

Re: Elegant tests with Truth Tables

#11
I love the concept of table driven tests. I created a gem so that you could put that data into tables -- called ATV for Ascii Table Values.

Just more of the same idea and I think the resulting tests are easier to understand. Good writeup.

Please take a look at my article: http://technology.indiegogo.com/2015/01/ascii-tables-for-cle...

And the gem: https://github.com/IndieGoGo/atv

+------+-------+ | name | Kelly | +------+-------+

Re: Elegant tests with Truth Tables

#12
post #10
post #7

I remember Gherkin (Cucumber for Ruby) had this! It does beat having a ton of assertions.

You have that backwards. Gherkin is a spec language for writing tests, Cucumber is a library for Ruby and Java that interprets Gherkin specifications.

How is that backwards, that is essentially what I said :-/ ?
Post reply on HN