Re: [rspec-users] Database custom formatter

2012-04-06 Thread Sam Goldman
I can add another example, that outputs HTML/JSON from a formatter. https://github.com/zipmark/rspec_api_documentation/blob/master/lib/rspec_api_documentation/api_formatter.rb This formatter works in concert with a DSL built on top of RSpec to output HTTP API documentation based on the test examp

Re: [rspec-users] Database custom formatter

2012-04-06 Thread Alex Chaffee
I'm about to start work on a JSON formatter. (I need it for a project where I'm executing RSpec on a server and shipping it down to a JS/HTML client for http://testfirst.org .) Any advice other than "look at lib/rspec/core/formatters/*.rb" before I start? >__

Re: [rspec-users] Database custom formatter

2011-10-21 Thread Justin Ko
On Oct 18, 2011, at 9:03 AM, Bill Christian wrote: > I am trying to write a custom formatter to update a database record based on > example results. Having a lot of trouble, so I thought to ask if anyone has a > custom formatter that writes results to a database or outputs results in JSON > or