-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | Hspec support for the Tasty test framework.
--   
--   This package provides a Tasty provider for Hspec test suites.
@package tasty-hspec
@version 1.2.0.4


-- | <tt>hspec</tt> and <tt>tasty</tt> serve similar purposes; consider
--   using one or the other.
--   
--   However, in a pinch, this module allows you to run an <tt>hspec</tt>
--   <a>Spec</a> as a <tt>tasty</tt> <a>TestTree</a>.
module Test.Tasty.Hspec

-- | Create a <a>tasty</a> <a>TestTree</a> from an <a>hspec</a>
--   <a>Spec</a>.
testSpec :: TestName -> Spec -> IO TestTree

-- | Create a list of <a>tasty</a> <a>TestTree</a> from an <a>hspec</a>
--   <a>Spec</a>. This returns the same tests as <a>testSpec</a> but
--   doesn't create a <a>tasty</a> test group from them.
testSpecs :: Spec -> IO [TestTree]

-- | How to treat <tt>hspec</tt> pending tests.
--   
--   <tt>tasty</tt> does not have the concept of pending tests, so we must
--   map them to either successes or failures. By default, they are treated
--   as failures.
--   
--   Set via the command line flag <tt>--treat-pending-as
--   (success|failure)</tt>.
data TreatPendingAs

-- | Default.
TreatPendingAsFailure :: TreatPendingAs
TreatPendingAsSuccess :: TreatPendingAs
instance Test.Tasty.Options.IsOption Test.Tasty.Hspec.TreatPendingAs
instance Test.Tasty.Core.IsTest Test.Tasty.Hspec.Item
