Has anyone used Spec by example for specifying projects writing APIs ?

91 views
Skip to first unread message

Tani

unread,
Jun 27, 2012, 11:18:16 AM6/27/12
to specificati...@googlegroups.com
Has anyone used Spec by example for specifying projects writing public APIs ?
Any dos or donts?

This is a .net project and we are planning to use SpecFlow with nunit .

Thanks
Tani

Rob Park

unread,
Jun 28, 2012, 10:28:22 AM6/28/12
to specificati...@googlegroups.com
Although I wouldn't say there was anything pure about the couple projects I've done this sort of thing, I would definitely recommend you do that for your API project.

Specifying examples first. 
Three amigos.
Failing test. 
Code the API.
Passing test.
Three amigos.
Repeat.

I've used SpecFlow a little, should work great.

The only don't I can think of is don't put some sort of UI in front of your API just to test it. Instead, enjoy the nice, fast API test suite. 

//rob

Tani

--
You received this message because you are subscribed to the Google Groups "Specification by Example" group.
To view this discussion on the web visit https://groups.google.com/d/msg/specificationbyexample/-/Hzk-Q1502vEJ.
To post to this group, send email to specificati...@googlegroups.com.
To unsubscribe from this group, send email to specificationbyex...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/specificationbyexample?hl=en.

Lancer Kind

unread,
May 12, 2013, 11:06:52 AM5/12/13
to specificati...@googlegroups.com
These public APIs are for external developers (ie your product is a library)?
Reply all
Reply to author
Forward
0 new messages