best testing framework?

128 views
Skip to first unread message

Ro Rao

unread,
Aug 21, 2012, 11:31:02 PM8/21/12
to nod...@googlegroups.com
hey all, i have a node app with backbone on the front end. i'm looking
for a relatively straightforward testing framework a la cucumber that i
can implement on both the backend and front end. any suggestions?

thanks!
R

greelgorke

unread,
Aug 22, 2012, 3:52:48 AM8/22/12
to nod...@googlegroups.com

Nuno Job

unread,
Aug 22, 2012, 6:11:18 AM8/22/12
to nod...@googlegroups.com
We are going to have a nodeup episode about testing next sunday.

I don't predict people talking about "the best" of anything though.

I made specify: https://github.com/dscape/specify

Nuno
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nod...@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+un...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en

Dominic Tarr

unread,
Aug 22, 2012, 6:19:28 AM8/22/12
to nod...@googlegroups.com
write your own test framework!
that teaches you every thing about error handling!

Nuno Job

unread,
Aug 22, 2012, 6:27:52 AM8/22/12
to nod...@googlegroups.com
Where is yours Domenic? Couldn't find it first pass on github

Curious to see something using domains out in the wild and relate it
to what I did in specify.

Nuno

On Wed, Aug 22, 2012 at 11:19 AM, Dominic Tarr <domini...@gmail.com> wrote:
> thing about error handling!

Alan Gutierrez

unread,
Aug 22, 2012, 9:59:38 AM8/22/12
to nod...@googlegroups.com
I created Proof...

https://github.com/bigeasy/proof

It is nice to have your own test framework. You spend so much time and attention
on testing, you're going to be plauged with insights as to how testing should be
done. Creating my own test framework helps me to be my own programmer.

--
Alan Gutierrez - http://twitter.com/bigeasy

Dominic Tarr

unread,
Aug 22, 2012, 11:03:26 AM8/22/12
to nod...@googlegroups.com
nuno,

https://github.com/dominictarr/macgyver
https://github.com/dominictarr/it-is
https://github.com/dominictarr/assertions
https://github.com/dominictarr/synct
https://github.com/dominictarr/asynct
https://github.com/dominictarr/meta-test

... to many, but I learnt a lot.
now I mostly just use straight scripts that error if the test fails.

with an assertion lib if I feel that it is warranted.

macgyver, it-is, and assertions are really assertions libs, and not
test frameworks.

meta-test was part of an an ambitious project to wrap every test
framework and thus grab the data out of any test run... but evenually
I realized that the only thing general enough to work with everything
is to just grab stdio and exit codes.

Matt

unread,
Aug 22, 2012, 11:06:06 AM8/22/12
to nod...@googlegroups.com
I just wish everyone agreed on TAP output (I see "proof" does). We should really be thinking about a future where we have the equivalent of Perl's CPAN Testers, and a common output format is vital for something like that.

Perl's CPAN Testers take the whole of CPAN (the equivalent of the NPM archive) and run tests on different platforms and different versions of Perl, including development versions of Perl, and provide authors with handy reports to fix their issues. They also provide the core Perl developers with info if a development version of Perl breaks something that is commonly used on the CPAN. There's a huge culture of testing in the Perl world that can be learned from here.

Matt.

Marak Squires

unread,
Aug 22, 2012, 11:10:06 AM8/22/12
to nod...@googlegroups.com
Vows should have a TAP reporter.

Dominic Tarr

unread,
Aug 22, 2012, 11:11:02 AM8/22/12
to nod...@googlegroups.com
matt, Marak:

If you see a job that needs doing, it's your job.

Matt

unread,
Aug 22, 2012, 1:24:02 PM8/22/12
to nod...@googlegroups.com
Sometimes it's just worth raising awareness of something. If I had time to go and fix every test framework to output TAP I would.

Fernando Trasvina

unread,
Aug 22, 2012, 3:06:05 PM8/22/12
to nod...@googlegroups.com
this one is not part of the buzz but try https://github.com/azendal/tellurium
Humankind cannot gain anything without first giving something in return. To obtain, something of equal value must be lost. That is alchemy’s first Law of Equivalent Exchange. ~ Alphonse Elric, Full Metal Alchemist

Nuno Job

unread,
Aug 26, 2012, 7:38:45 AM8/26/12
to nod...@googlegroups.com
Just a heads up we will be talking about testing live today at 12PM Pacific @NodeUp.

Nuno
Reply all
Reply to author
Forward
0 new messages