packages feed

tasty-silver-3.2.3: tasty-silver.cabal

name:                tasty-silver
version:             3.2.3
synopsis:            A fancy test runner, including support for golden tests.
description:
  This package provides a fancy test runner and support for «golden testing».

  A golden test is an IO action that writes its result to a file.
  To pass the test, this output file should be identical to the corresponding
  «golden» file, which contains the correct result for the test.

  The test runner allows filtering tests using regexes, and to interactively
  inspect the result of golden tests.

  This package is a heavily extended fork of tasty-golden.

license:             MIT
license-file:        LICENSE
Homepage:            https://github.com/phile314/tasty-silver
Bug-reports:         https://github.com/phile314/tasty-silver/issues
author:              Philipp Hausmann, Roman Cheplyaka and others
maintainer:          Philipp Hausmann, Andreas Abel
-- copyright:
category:            Testing
build-type:          Simple
cabal-version:       1.14

extra-source-files:
  CHANGELOG.md
  README.md

tested-with:
  GHC == 9.0.1
  GHC == 8.10.4
  GHC == 8.8.4
  GHC == 8.6.5
  GHC == 8.4.4
  GHC == 8.2.2
  GHC == 8.0.2
  GHC == 7.10.3
  GHC == 7.8.4
  GHC == 7.6.3
  GHC == 7.4.2
  -- GHC 7.0 is not supported by regex-tdfa, needing array >= 0.4

Source-repository head
  type:     git
  location: git://github.com/phile314/tasty-silver.git

library
  Default-language:
    Haskell2010
  exposed-modules:     Test.Tasty.Silver
                       Test.Tasty.Silver.Advanced
                       Test.Tasty.Silver.Filter
                       Test.Tasty.Silver.Interactive
                       Test.Tasty.Silver.Interactive.Run
                       Test.Tasty.Silver.Internal

  if impl(ghc >= 8.0)
    ghc-options:
      -Wall
      -Wno-name-shadowing
      -Wcompat

  build-depends:
    ansi-terminal >= 0.6.2.1,
    async,
    base >= 4.5,
      -- regex-tdfa has this lower bound on base, so we make it explicit here
    bytestring >= 0.9.2.1,
    containers,
    directory,
    deepseq,
    filepath,
    mtl,
    optparse-applicative,
    process >= 1.2,
    process-extras >= 0.2,
    regex-tdfa >= 1.2.0,
    stm >= 2.4.2,
    tagged,
    tasty >= 1.4,
    temporary,
    text >= 0.11.0.0
  if impl(ghc < 8.0)
    build-depends: semigroups >= 0.18.3

Test-suite test
  Default-language:
    Haskell2010
  Type:
    exitcode-stdio-1.0
  Hs-source-dirs:
    tests
  Main-is:
    test.hs
  Build-depends:
      base >= 4 && < 5
    , tasty >= 1.4
    , tasty-hunit
    , tasty-silver
    , filepath
    , directory
    , process
    , silently >= 1.2.5.1
        -- Andreas Abel, 2021-09-05, latest silently is today 1.2.5.1
    , temporary
    , transformers >= 0.3

  if impl(ghc >= 8.0)
    ghc-options:
      -Wall
      -Wno-name-shadowing
      -Wcompat