-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathHTF.cabal
235 lines (221 loc) · 6.63 KB
/
HTF.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
Cabal-Version: 2.0
Name: HTF
Version: 0.15.0.2
License: LGPL-2.1
License-File: LICENSE
Copyright: (c) 2005-2024 Stefan Wehr
Author: Stefan Wehr
Maintainer: Stefan Wehr
Stability: Beta
Category: Testing
Synopsis: The Haskell Test Framework
Homepage: https://github.com/skogsbaer/HTF/
Bug-Reports: https://github.com/skogsbaer/HTF/issues
Description:
The Haskell Test Framework (/HTF/ for short) lets you define and organize unit tests,
QuickCheck properties,
and black box tests in an
easy and convenient way. HTF uses a custom preprocessor that collects
test definitions automatically.
.
HTF produces highly readable output
for failing test cases: it provides exact file name and line number
information,
it colors and pretty prints expected and
actual results, and it displays a diff highlighting the mismatching parts.
.
The documentation of the "Test.Framework.Tutorial" module
provides a tutorial for HTF. The /sample/ directory in
the HTF repo provides a good starting point for
a project using HTF.
Build-Type: Simple
Extra-Source-Files:
README.md
ChangeLog
stack.yaml
stack-ghc-8.2.yaml
stack-ghc-8.4.yaml
stack-ghc-8.6.yaml
stack-ghc-8.8.yaml
stack-ghc-8.10.yaml
stack-ghc-9.0.yaml
stack-ghc-9.2.yaml
stack-ghc-9.4.yaml
stack-ghc-9.6.yaml
tests/bbt/should_fail/BBTArgs
tests/bbt/should_fail/*.err
tests/bbt/should_fail/*.out
tests/bbt/should_fail/*.x
tests/bbt/should_pass/*.in
tests/bbt/should_pass/*.err
tests/bbt/should_pass/*.out
tests/bbt/should_pass/*.x
tests/bbt/Skip/BBTArgs
tests/bbt/Skip/some_unknown_but_skipped_file.x
tests/bbt/Verbose/BBTArgs
tests/bbt/Verbose/not_ok_because_stdout1.out
tests/bbt/Verbose/not_ok_because_stdout1.x
tests/Foo/test.h
tests/Tutorial.hs
tests/run-bbt.sh
tests/compile-errors/Foo.h
tests/compile-errors/run-tests.sh
tests/compile-errors/Test1.hs
tests/compile-errors/Test2.hs
tests/compile-errors/Test3.hs
tests/compile-errors/Test4.hs
sample/LICENSE
sample/Main.hs
sample/MyPkg/A.hs
sample/MyPkg/B.hs
sample/README
sample/sample-HTF.cabal
sample/Setup.hs
sample/TestMain.hs
sample/bbt-dir/should-fail/BBTArgs
sample/bbt-dir/should-fail/z.err
sample/bbt-dir/should-fail/z.num
sample/bbt-dir/should-pass/x.num
sample/bbt-dir/should-pass/x.out
scripts/local-htfpp
scripts/dist.sh
scripts/check.sh
scripts/run-sample
scripts/prepare
tested-with:
GHC == 9.4.4
GHC == 9.2.6
GHC == 9.0.2
GHC == 8.10.7
GHC == 8.8.4
GHC == 8.6.5
GHC == 8.4.4
GHC == 8.2.2
Source-Repository head
Type: git
Location: http://github.com/skogsbaer/HTF.git
Executable htfpp
Main-Is: HTFPP.hs
Build-Depends: HUnit,
array,
base >= 4.10 && < 5,
cpphs >= 1.19,
directory >= 1.0,
mtl >= 1.1,
old-time >= 1.0,
random >= 1.0,
text >= 0.11,
HTF
Build-tool-depends: cpphs:cpphs >= 1.19
Other-Modules:
Paths_HTF
Test.Framework.Location
Test.Framework.Preprocessor
Autogen-modules:
Paths_HTF
Default-language: Haskell2010
Library
Build-Depends: Diff >= 0.3,
HUnit >= 1.2.5,
QuickCheck >= 2.3,
aeson >= 0.11,
array,
base >= 4.10 && < 5,
base64-bytestring,
bytestring >= 0.9,
containers >= 0.5,
cpphs >= 1.19,
haskell-src,
directory >= 1.0,
lifted-base >= 0.1,
monad-control >= 0.3,
mtl >= 1.1,
old-time >= 1.0,
pretty >= 1.0,
process >= 1.0,
random >= 1.0,
regex-compat >= 0.92,
text >= 0.11,
time,
vector,
xmlgen >= 0.6
if !os(windows)
Build-Depends: unix >= 2.4
Exposed-Modules:
Test.Framework
Test.Framework.AssertM
Test.Framework.BlackBoxTest
Test.Framework.HUnitWrapper
Test.Framework.History
Test.Framework.JsonOutput
Test.Framework.Location
Test.Framework.Preprocessor
Test.Framework.Pretty
Test.Framework.PrettyHaskell
Test.Framework.QuickCheckWrapper
Test.Framework.TestInterface
Test.Framework.TestManager
Test.Framework.TestTypes
Test.Framework.ThreadPool
Test.Framework.Tutorial
Test.Framework.XmlOutput
Other-Modules:
Paths_HTF
Test.Framework.CmdlineOptions
Test.Framework.Colors
Test.Framework.Diff
Test.Framework.Process
Test.Framework.TestReporter
Test.Framework.Utils
Autogen-modules:
Paths_HTF
Build-tool-depends: cpphs:cpphs >= 1.19
Default-language: Haskell2010
Ghc-Options:
-W -fwarn-unused-imports -fwarn-unused-binds -fwarn-unused-matches -fwarn-unused-do-bind -fwarn-wrong-do-bind
-Wcompat
Test-Suite MiscTests
Main-is: MiscTest.hs
Type: exitcode-stdio-1.0
Hs-Source-Dirs: tests
Build-depends: HTF,
HUnit,
base >= 4.10 && < 5,
mtl,
random
Build-tool-depends: HTF:htfpp
Default-language: Haskell2010
Test-Suite TestHTF
Main-is: TestHTF.hs
Hs-Source-Dirs: tests, tests/real-bbt
Type: exitcode-stdio-1.0
Build-depends: HTF,
aeson >= 0.11,
aeson-pretty,
base >= 4.10 && < 5,
bytestring >= 0.9,
directory >= 1.0,
filepath >= 1.1,
process >= 1.0,
random,
regex-compat >= 0.92,
template-haskell,
temporary >= 1.1,
text >= 0.11,
unordered-containers >= 0.2
Build-tool-depends: HTF:htfpp
Default-language: Haskell2010
Other-Modules:
Foo.A, Foo.B, FailFast, MaxCurTime,
MaxPrevTime, PrevFactor, SortByPrevTime, UniqTests1, UniqTests2, Quasi,
Tutorial, Repeat
Test-Suite TestThreadPools
Main-is: ThreadPoolTest.hs
Type: exitcode-stdio-1.0
Hs-Source-Dirs: tests
Build-depends: HTF,
base >= 4.10 && < 5,
mtl,
random
Build-tool-depends: HTF:htfpp
Default-language: Haskell2010