Clack.Test - Testing Clack Applications.

SYNOPSIS

(defpackage clack-test.sample  
  (:use :cl  
        :clack.test  
        :cl-test-more  
        :drakma))  
(in-package :clack-test.sample)  
 
(test-app  
 (lambda (env)  
   (declare (ignore env))  
   `(200 (:content-type "text/plain") ("Hello, Clack!")))  
 (lambda ()  
   (multiple-value-bind (body status headers)  
       (http-request "http://localhost:4242")  
     (is status 200)  
     (is body "Hello, Clack!")  
     (is (assoc :content-type headers) "text/plain")))  
 "Testing simple application") 

DESCRIPTION

Clack.Test provides simple interface to test Clack Application or Middleware.

Your Lisp have to support multi-thread to run this.

AUTHOR

Eitarow Fukamachi (e.arrows@gmail.com)

SEE ALSO

EXTERNAL SYMBOLS