HTTP testing tool

23 views
Skip to first unread message

Dmitry Dzhus

unread,
Feb 18, 2012, 1:42:48 PM2/18/12
to Snap Framework
Not really a Snap question but still relevant to good things in web
development.

As my web application grew larger I pondered over adding test harness
to the project to ensure nothing breaks as I hack on. I wonder what
should I use for expect-like testing over HTTP. The app I'm working on
is serving/accepting bare JSON so what I need is to perform requests
to server and check if response headers and body match the expected
data.

httest tool is quite close to what is needed, but boy it's awkward and
documentation is so poor that I'd better use hand-written shell
scripts wrapped around curl. Perhaps someone can point out a better
tool for that, otherwise it sounds like an idea for a new Haskell
project.

Gregory Collins

unread,
Feb 19, 2012, 9:43:00 AM2/19/12
to snap_fr...@googlegroups.com
Use Snap.Test from snap-core.
--
Gregory Collins <gr...@gregorycollins.net>

Dmitry Dzhus

unread,
Feb 20, 2012, 4:40:08 AM2/20/12
to Snap Framework
On 19 фев, 17:43, Gregory Collins <g...@gregorycollins.net> wrote:
> Use Snap.Test from snap-core.

This looks like just what I needed. Thanks!
Reply all
Reply to author
Forward
0 new messages