hspec-snap alternatives and similar packages
Based on the "Snap" category.
Alternatively, view hspec-snap alternatives based on common mentions on social networks and blogs.
-
snap
Top-level package for the official Snap Framework libraries, includes the snaplets API as well as infrastructure for sessions, auth, and templates. -
heist
An xhtml-based templating engine, allowing Haskell functions to be bound to XML tags. -
snaplet-postgresql-simple
postgresql-simple snaplet for the Snap Framework -
snaplet-persistent
Snaplet for using Persistent in snap applications -
snap-extras
A collection of handler, splice and other primitive helpers that are commonly needed in web applications -
snap-templates
An executable for generating project templates for the Snap Framework -
snaplet-actionlog
Create a change log/history for records in your snap application -
snaplet-sqlite-simple
sqlite-simple snaplet for the Snap Framework -
snaplet-mysql-simple
A haskell snaplet for using MariaDB and MySQL database with a Snap Framework application via mysql-simple -
snaplet-sass
Sass integration for Snap with request- and pre-compilation. -
snaplet-auth-acid
An AcidState backend for Snap's Auth Snaplet -
snaplet-postmark
Haskell Snap Framework support for Postmark email system. -
snaplet-coffee
A Haskell Snaplet based off of snaplet-fay, but for coffeescript
Access the most powerful time series database as a service
Do you think we are missing an alternative of hspec-snap or a related project?
README
About
hspec-snap
is a library to allow you to write tests against Snap web
applications in the context of an hspec
test suite.
Usage
The basic usage is that within an hspec
test suite, you can insert a
block with snap
, within which all of the normal spec organization
tools work (describe
, context
, and it
), but the content of the
actual tests should be tests in the Snap context. These tests can make
requests against your application, run arbitrary handler functions,
and assert various HTTP statuses, content of HTML pages, or just plain
unit tests. You can't mix in other types of tests within the snap
block, and you can't share values between different unit tests (a unit
test being what's inside an it
), but you can have any number of
snap
blocks, and can make any number of assertions within a unit
test block (from HSpec's perspective, though, it is just one test).
To get started, take a look at the test suite within the spec/
directory.
Examples
The easiest examples to look at are in the test suite in the spec/
directory.
Tests
You can run the test suite with stack test
if you are using stack, or cabal test
if not. When the robots
last ran the suite, it:
License
BSD3
Contributors
Daniel Patterson ([email protected])
Tim Adams ([email protected])
Greg Hale ([email protected])
*Note that all licence references and agreements mentioned in the hspec-snap README section above
are relevant to that project's source code only.