-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathhspec-golden.cabal
91 lines (85 loc) · 2.69 KB
/
hspec-golden.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
cabal-version: 1.12
-- This file has been generated from package.yaml by hpack version 0.36.0.
--
-- see: https://github.com/sol/hpack
name: hspec-golden
version: 0.0.0.0
synopsis: Golden tests for hspec
description: .
Golden tests store the expected output in a separated file. Each time a golden test
is executed the output of the subject under test (SUT) is compared with the
expected output. If the output of the SUT changes then the test will fail until
the expected output is updated.
.
@hspec-golden@ allows you to write golden tests using the popular @hspec@.
.
> describe "myFunc" $
> it "generates the right output with the right params" $
> let output = show $ myFunc params
> in defaultGolden "myFunc" output
.
Please see the <https://github.com/stackbuilders/hspec-golden#readme README on GitHub>
for more information.
category: Testing
homepage: https://github.com/stackbuilders/hspec-golden#readme
bug-reports: https://github.com/stackbuilders/hspec-golden/issues
author: Stack Builders
maintainer: Cristhian Motoche <cmotoche@stackbuilders.com>
copyright: 2019-Present Stack Builders Inc
license: MIT
license-file: LICENSE
build-type: Simple
tested-with:
GHC==8.8, GHC==8.10, GHC==9.0
extra-source-files:
README.md
ChangeLog.md
source-repository head
type: git
location: https://github.com/stackbuilders/hspec-golden
library
exposed-modules:
Test.Hspec.Golden
other-modules:
Paths_hspec_golden
hs-source-dirs:
src
build-depends:
base >=4.6 && <5
, directory >=1.3.6 && <1.4
, filepath >=1.0 && <2.0
, hspec-core >=2.10 && <3.0
default-language: Haskell2010
executable hgold
main-is: Main.hs
other-modules:
Paths_hspec_golden
hs-source-dirs:
app
ghc-options: -threaded -rtsopts -with-rtsopts=-N
build-depends:
ansi-terminal >=1.0 && <2.0
, base >=4.6 && <5
, directory >=1.2.5.0
, hspec-golden
, optparse-applicative >=0.18.1 && <0.19
default-language: Haskell2010
test-suite hspec-golden-test
type: exitcode-stdio-1.0
main-is: Spec.hs
other-modules:
Test.Hspec.GoldenSpec
Paths_hspec_golden
hs-source-dirs:
test
ghc-options: -threaded -rtsopts -with-rtsopts=-N
build-tool-depends:
hspec-discover:hspec-discover >=2.0 && <3.0
build-depends:
base >=4.6 && <5
, directory
, hspec
, hspec-core
, hspec-golden
, silently
default-language: Haskell2010