1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
3 ;;; Copyright © 2015 Eric Bavier <bavier@member.fsf.org>
4 ;;; Copyright © 2015 Federico Beffa <beffa@fbengineering.ch>
5 ;;; Copyright © 2015, 2016, 2017, 2018 Ricardo Wurmus <rekado@elephly.net>
6 ;;; Copyright © 2016 ng0 <ng0@n0.is>
7 ;;; Copyright © 2016 David Craven <david@craven.ch>
8 ;;; Copyright © 2017 Danny Milosavljevic <dannym@scratchpost.org>
9 ;;; Copyright © 2017 rsiddharth <s@ricketyspace.net>
10 ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
11 ;;; Copyright © 2018 Tonton <tonton@riseup.net>
12 ;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net>
14 ;;; This file is part of GNU Guix.
16 ;;; GNU Guix is free software; you can redistribute it and/or modify it
17 ;;; under the terms of the GNU General Public License as published by
18 ;;; the Free Software Foundation; either version 3 of the License, or (at
19 ;;; your option) any later version.
21 ;;; GNU Guix is distributed in the hope that it will be useful, but
22 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
23 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 ;;; GNU General Public License for more details.
26 ;;; You should have received a copy of the GNU General Public License
27 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
29 (define-module (gnu packages haskell-check)
30 #:use-module (gnu packages)
31 #:use-module (gnu packages haskell)
32 #:use-module (gnu packages haskell-crypto)
33 #:use-module (guix build-system haskell)
34 #:use-module (guix download)
35 #:use-module ((guix licenses) #:prefix license:)
36 #:use-module (guix packages)
37 #:use-module (guix utils))
39 (define-public ghc-tasty-ant-xml
41 (name "ghc-tasty-ant-xml")
47 "https://hackage.haskell.org/package/tasty-ant-xml/tasty-ant-xml-"
52 "0v0gsb90kh6hwlgxbclzawsskywc6yf7n8xhiifia97l4y0yx2m8"))))
53 (build-system haskell-build-system)
55 `(("ghc-generic-deriving" ,ghc-generic-deriving)
57 ("ghc-tagged" ,ghc-tagged)
58 ("ghc-tasty" ,ghc-tasty)))
60 "https://github.com/ocharles/tasty-ant-xml")
62 "Render tasty output to XML for Jenkins")
64 "A tasty ingredient to output test results in XML, using the Ant
65 schema. This XML can be consumed by the Jenkins continuous integration
67 (license license:bsd-3)))
69 (define-public ghc-tasty-smallcheck
71 (name "ghc-tasty-smallcheck")
77 "https://hackage.haskell.org/package/tasty-smallcheck/tasty-smallcheck-"
82 "1n66ngzllf3xrlqykwszlkwsi96n5nkm7xbpfq7774vpvfnafjri"))))
83 (build-system haskell-build-system)
85 `(("ghc-tasty" ,ghc-tasty)
86 ("ghc-smallcheck" ,ghc-smallcheck)
87 ("ghc-async" ,ghc-async)
88 ("ghc-tagged" ,ghc-tagged)))
89 (home-page "https://documentup.com/feuerbach/tasty")
90 (synopsis "SmallCheck support for the Tasty test framework")
91 (description "This package provides SmallCheck support for the Tasty
92 Haskell test framework.")
93 (license license:bsd-3)))
95 (define-public ghc-tasty-quickcheck
97 (name "ghc-tasty-quickcheck")
103 "https://hackage.haskell.org/package/tasty-quickcheck/"
104 "tasty-quickcheck-" version ".tar.gz"))
107 "0vr6szbbz3s5461i0zr8zpq347zfvidfzv5gf3xwxhm0yk731z8h"))))
108 (build-system haskell-build-system)
110 `(("ghc-quickcheck" ,ghc-quickcheck)
111 ("ghc-tagged" ,ghc-tagged)
112 ("ghc-tasty" ,ghc-tasty)
113 ("ghc-random" ,ghc-random)
114 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
115 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
116 ("ghc-pcre-light" ,ghc-pcre-light)))
117 (home-page "http://documentup.com/feuerbach/tasty")
118 (synopsis "QuickCheck support for the Tasty test framework")
119 (description "This package provides QuickCheck support for the Tasty
120 Haskell test framework.")
121 (license license:expat)))
123 (define-public ghc-tasty-golden
125 (name "ghc-tasty-golden")
131 "https://hackage.haskell.org/package/tasty-golden/tasty-golden-"
136 "0k3ibjhjc9vcwzrjnl4rnwvfm8l81q347nb7dgvcib6n5wm3s404"))))
137 (build-system haskell-build-system)
139 `(("ghc-temporary" ,ghc-temporary)
140 ("ghc-tasty" ,ghc-tasty)
141 ("ghc-optparse-applicative" ,ghc-optparse-applicative)
142 ("ghc-tagged" ,ghc-tagged)
143 ("ghc-async" ,ghc-async)
144 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
145 ("ghc-temporary-rc" ,ghc-temporary-rc)))
147 "https://github.com/feuerbach/tasty-golden")
148 (synopsis "Golden tests support for tasty")
150 "This package provides support for @code{golden testing}. A @dfn{golden
151 test} is an IO action that writes its result to a file. To pass the test, this
152 output file should be identical to the corresponding @code{golden} file, which
153 contains the correct result for the test.")
154 (license license:expat)))
156 (define-public ghc-tasty
164 "https://hackage.haskell.org/package/tasty/tasty-"
169 "14riid753hjqr6lca1kgxpnvq0wykf0k3qc5jpag42hh8bszav22"))))
170 (build-system haskell-build-system)
172 `(("ghc-tagged" ,ghc-tagged)
173 ("ghc-regex-tdfa" ,ghc-regex-tdfa)
174 ("ghc-optparse-applicative" ,ghc-optparse-applicative)
175 ("ghc-unbounded-delays" ,ghc-unbounded-delays)
176 ("ghc-async" ,ghc-async)
177 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
178 ("ghc-clock-bootstrap" ,ghc-clock-bootstrap)
179 ("ghc-wcwidth" ,ghc-wcwidth-bootstrap)))
180 (home-page "http://documentup.com/feuerbach/tasty")
181 (synopsis "Modern and extensible testing framework")
182 (description "Tasty is a modern testing framework for Haskell. It lets
183 you combine your unit tests, golden tests, QuickCheck/SmallCheck properties,
184 and any other types of tests into a single test suite.")
185 (license license:expat)))
187 (define-public ghc-tasty-hunit
189 (name "ghc-tasty-hunit")
195 "https://hackage.haskell.org/package/tasty-hunit/tasty-hunit-"
200 "0j3hgga6c3s8h5snzivb8a75h96207ia2rlbxzj07xbf4zpkp44g"))))
201 (build-system haskell-build-system)
203 `(("ghc-call-stack" ,ghc-call-stack-boot)
204 ("ghc-tasty" ,ghc-tasty)))
205 (home-page "http://documentup.com/feuerbach/tasty")
206 (synopsis "HUnit support for the Tasty test framework")
207 (description "This package provides HUnit support for the Tasty Haskell
209 (license license:expat)))
211 (define-public ghc-tasty-kat
213 (name "ghc-tasty-kat")
217 (uri (string-append "https://hackage.haskell.org/package/"
218 "tasty-kat/tasty-kat-" version ".tar.gz"))
221 "14yvlpli6cv6bn3kh8mlfp4x1l6ns4fvmfv6hmj75cvxyzq029d7"))))
222 (build-system haskell-build-system)
224 `(("ghc-tasty" ,ghc-tasty)
225 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
226 ("ghc-tasty-hunit" ,ghc-tasty-hunit)))
227 (home-page "https://github.com/vincenthz/tasty-kat")
228 (synopsis "Known Answer Tests (KAT) framework for tasty")
230 "This package provides a @dfn{Known Answer Tests} (KAT) framework for
232 (license license:expat)))
234 (define-public ghc-tasty-th
236 (name "ghc-tasty-th")
242 "https://hackage.haskell.org/package/tasty-th/tasty-th-"
246 "0b2ivrw2257m4cy4rjnkwqlarh83j1y3zywnmaqqqbvy667sqnj3"))))
247 (build-system haskell-build-system)
249 `(("ghc-haskell-src-exts" ,ghc-haskell-src-exts)
250 ("ghc-tasty" ,ghc-tasty)
251 ("ghc-tasty-hunit" ,ghc-tasty-hunit)))
252 (home-page "https://github.com/bennofs/tasty-th")
253 (synopsis "Automatically generate tasty TestTrees")
255 "Tasty-th automatically generates tasty TestTrees from functions of the
256 current module, using TemplateHaskell. This is a fork the original
257 test-framework-th package, modified to work with tasty instead of
259 (license license:bsd-3)))
261 (define-public ghc-tasty-rerun
263 (name "ghc-tasty-rerun")
268 "https://hackage.haskell.org/package/tasty-rerun/"
269 "tasty-rerun-" version ".tar.gz"))
272 "05lp4zy6lwd916snq6hs43848n62j9vdfl3s8sfivqydrax0vvd8"))))
273 (build-system haskell-build-system)
275 `(("ghc-optparse-applicative" ,ghc-optparse-applicative)
276 ("ghc-reducers" ,ghc-reducers)
277 ("ghc-split" ,ghc-split)
278 ("ghc-tagged" ,ghc-tagged)
279 ("ghc-tasty" ,ghc-tasty)))
280 (home-page "https://github.com/ocharles/tasty-rerun")
281 (synopsis "Run tests by filtering the test tree")
282 (description "This package adds the ability to run tests by filtering the
283 test tree based on the result of a previous test run. You can use this to run
284 only those tests that failed in the last run, or to only run the tests that have
285 been added since previous test run.")
286 (license license:bsd-3)))
288 (define-public ghc-tasty-expected-failure
290 (name "ghc-tasty-expected-failure")
295 (uri (string-append "https://hackage.haskell.org/package/"
296 "tasty-expected-failure/tasty-expected-failure-"
300 "1i2s809m644b7hgiblqay9j364r3fjj1rwbrahsn1pgr5q6mr6ji"))))
301 (build-system haskell-build-system)
303 `(("ghc-tagged" ,ghc-tagged)
304 ("ghc-tasty" ,ghc-tasty)))
305 (home-page "http://github.com/nomeata/tasty-expected-failure")
306 (synopsis "Mark tasty tests as failure expected")
308 "With the function @code{Test.Tasty.ExpectedFailure.expectFail} in the
309 provided module @code{Test.Tasty.ExpectedFailure}, you can mark that you
310 expect test cases to fail, and not to pass. This can be used for test-driven
312 (license license:expat)))
314 (define-public ghc-quickcheck-instances
316 (name "ghc-quickcheck-instances")
322 "https://hackage.haskell.org/package/"
323 "quickcheck-instances/quickcheck-instances-"
327 "1bh1pzz5fdcqvzdcirqxna6fnjms02min5md716299g5niz46w55"))))
328 (build-system haskell-build-system)
331 ("1" "1sngfq3v71bvgjsl8cj5kh65m3fziwy8dkvwjzs0kxfrzr87faly")))
333 `(("ghc-quickcheck" ,ghc-quickcheck)
334 ("ghc-base-compat" ,ghc-base-compat)
335 ("ghc-case-insensitive" ,ghc-case-insensitive)
336 ("ghc-hashable" ,ghc-hashable)
337 ("ghc-old-time" ,ghc-old-time)
338 ("ghc-scientific" ,ghc-scientific)
339 ("ghc-tagged" ,ghc-tagged)
340 ("ghc-transformers-compat" ,ghc-transformers-compat)
341 ("ghc-unordered-containers" ,ghc-unordered-containers)
342 ("ghc-uuid-types" ,ghc-uuid-types)
343 ("ghc-vector" ,ghc-vector)))
344 (home-page "https://github.com/aslatter/qc-instances")
345 (synopsis "Common quickcheck instances")
346 (description "This package provides QuickCheck instances for types
347 provided by the Haskell Platform.")
348 (license license:bsd-3)))
350 (define-public ghc-quickcheck-unicode
352 (name "ghc-quickcheck-unicode")
358 "https://hackage.haskell.org/package/quickcheck-unicode/"
359 "quickcheck-unicode-" version ".tar.gz"))
362 "0s43s1bzbg3gwsjgm7fpyksd1339f0m26dlw2famxwyzgvm0a80k"))))
363 (build-system haskell-build-system)
364 (inputs `(("ghc-quickcheck" ,ghc-quickcheck)))
366 "https://github.com/bos/quickcheck-unicode")
367 (synopsis "Generator functions Unicode-related tests")
368 (description "This package provides generator and shrink functions for
369 testing Unicode-related software.")
370 (license license:bsd-3)))
372 (define-public ghc-quickcheck-io
374 (name "ghc-quickcheck-io")
380 "https://hackage.haskell.org/package/quickcheck-io/quickcheck-io-"
385 "08k4v7pkgjf30pv5j2dfv1gqv6hclxlniyq2sps8zq4zswcr2xzv"))))
386 (build-system haskell-build-system)
388 `(("ghc-quickcheck" ,ghc-quickcheck)
389 ("ghc-hunit" ,ghc-hunit)))
391 "https://github.com/hspec/quickcheck-io#readme")
392 (synopsis "Use HUnit assertions as QuickCheck properties")
393 (description "This package provides an orphan instance that allows you to
394 use HUnit assertions as QuickCheck properties.")
395 (license license:expat)))
397 (define-public ghc-quickcheck
399 (name "ghc-quickcheck")
401 (outputs '("out" "doc"))
406 "https://hackage.haskell.org/package/QuickCheck/QuickCheck-"
411 "0xhqk35fkzlbjcqbabg6962jkv8d688nzmz7ng4bm84x2d95d328"))))
412 (build-system haskell-build-system)
414 `(#:tests? #f)) ; FIXME: currently missing libraries used for tests.
416 `(("ghc-random" ,ghc-random)
417 ("ghc-tf-random" ,ghc-tf-random)))
418 (home-page "https://github.com/nick8325/quickcheck")
419 (synopsis "Automatic testing of Haskell programs")
421 "QuickCheck is a library for random testing of program properties. The
422 programmer provides a specification of the program, in the form of properties
423 which functions should satisfy, and QuickCheck then tests that the properties
424 hold in a large number of randomly generated cases. Specifications are
425 expressed in Haskell, using combinators defined in the QuickCheck library.")
426 (license license:bsd-3)))
428 (define-public ghc-test-framework
430 (name "ghc-test-framework")
435 (uri (string-append "https://hackage.haskell.org/package/test-framework/"
436 "test-framework-" version ".tar.gz"))
439 "1hhacrzam6b8f10hyldmjw8pb7frdxh04rfg3farxcxwbnhwgbpm"))))
440 (build-system haskell-build-system)
442 `(#:tests? #f ; FIXME: Tests do not build.
444 (modify-phases %standard-phases
445 (add-before 'configure 'update-constraints
447 (substitute* "test-framework.cabal"
448 (("QuickCheck >= 2\\.3 && < 2\\.10")
449 "QuickCheck >= 2.3 && < 2.12")))))))
451 `(("ghc-hunit" ,ghc-hunit)
452 ("ghc-quickcheck" ,ghc-quickcheck)))
454 `(("ghc-ansi-terminal" ,ghc-ansi-terminal)
455 ("ghc-ansi-wl-pprint" ,ghc-ansi-wl-pprint)
456 ("ghc-hostname" ,ghc-hostname)
457 ("ghc-old-locale" ,ghc-old-locale)
458 ("ghc-random" ,ghc-random)
459 ("ghc-regex-posix" ,ghc-regex-posix)
461 ("ghc-libxml" ,ghc-libxml)
462 ("ghc-semigroups" ,ghc-semigroups-bootstrap)))
463 (home-page "https://batterseapower.github.io/test-framework/")
464 (synopsis "Framework for running and organising tests")
466 "This package allows tests such as QuickCheck properties and HUnit test
467 cases to be assembled into test groups, run in parallel (but reported in
468 deterministic order, to aid diff interpretation) and filtered and controlled
469 by command line options. All of this comes with colored test output, progress
470 reporting and test statistics output.")
471 (license license:bsd-3)))
473 (define-public ghc-test-framework-hunit
475 (name "ghc-test-framework-hunit")
480 (uri (string-append "https://hackage.haskell.org/package/"
481 "test-framework-hunit/test-framework-hunit-"
485 "1y0b6vg8nfm43v90lxxcydhi6qlxhfy4vpxbzm5ic2w55bh8xjwm"))))
486 (build-system haskell-build-system)
489 ("3" "0i9mlalv7cl1iq43ld5myrnpszq5rxmd79hk495dcb08rglhgl3z")))
491 `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
492 ("ghc-hunit" ,ghc-hunit)
493 ("ghc-test-framework" ,ghc-test-framework)))
494 (home-page "https://batterseapower.github.io/test-framework/")
495 (synopsis "HUnit support for test-framework")
497 "This package provides HUnit support for the test-framework package.")
498 (license license:bsd-3)))
500 (define-public ghc-test-framework-quickcheck2
502 (name "ghc-test-framework-quickcheck2")
507 (uri (string-append "https://hackage.haskell.org/package/"
508 "test-framework-quickcheck2/"
509 "test-framework-quickcheck2-" version ".tar.gz"))
512 "0vj834337r6jzr3258cv68ly2sv5999mklpsrfngyk51kywsyqyp"))))
513 (build-system haskell-build-system)
516 ("1" "147ngmfdkskyg7mwsp5w73a4dbx3rp5s38bci3z03kn1m093lxff")))
518 `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
519 ("ghc-quickcheck" ,ghc-quickcheck)
520 ("ghc-random" ,ghc-random)
521 ("ghc-test-framework" ,ghc-test-framework)))
522 (home-page "https://batterseapower.github.io/test-framework/")
523 (synopsis "QuickCheck2 support for test-framework")
525 "This package provides QuickCheck2 support for the test-framework
527 (license license:bsd-3)))
529 (define-public ghc-test-framework-th
531 (name "ghc-test-framework-th")
536 (uri (string-append "https://hackage.haskell.org/package/"
537 "test-framework-th-" version "/"
538 "test-framework-th-" version ".tar.gz"))
541 "12lw7yj02jb9s0i7rb98jjam43j2h0gzmnbj9zi933fx7sg0sy4b"))))
542 (build-system haskell-build-system)
544 `(("ghc-test-framework" ,ghc-test-framework)
545 ("ghc-language-haskell-extract" ,ghc-language-haskell-extract)
546 ("ghc-haskell-src-exts" ,ghc-haskell-src-exts)
547 ("ghc-regex-posix" ,ghc-regex-posix)))
548 (home-page "https://github.com/finnsson/test-generator")
549 (synopsis "Auto generate the HUnit- and Quickcheck-bulk-code
550 using Template Haskell")
551 (description "This library contains two functions:
552 @code{defaultMainGenerator} and @code{testGroupGenerator}.
554 @code{defaultMainGenerator} will extract all functions beginning with
555 @code{case_}, @code{prop_}, or @code{test_} in the module and put them in a
558 @code{testGroupGenerator} is like @code{defaultMainGenerator} but without
559 @code{defaultMain}. It is useful if you need a function for the testgroup
560 \(e.g. if you want to be able to call the testgroup from another module).")
561 (license license:bsd-3)))
563 (define-public ghc-hunit
567 (outputs '("out" "doc"))
571 (uri (string-append "https://hackage.haskell.org/package/HUnit/"
572 "HUnit-" version ".tar.gz"))
575 "1pnhwqq5v8h48gbp3ibv3skfj25mf4zs5svxcavq93p9cswycj3l"))))
576 (build-system haskell-build-system)
578 ;; We cannot use ghc-call-stack there, because it depends on
579 ;; ghc-nanospec, which depends on ghc-hunit.
580 `(("ghc-call-stack" ,ghc-call-stack-boot)))
581 (home-page "http://hunit.sourceforge.net/")
582 (synopsis "Unit testing framework for Haskell")
584 "HUnit is a unit testing framework for Haskell, inspired by the
585 JUnit tool for Java.")
586 (license license:bsd-3)))
588 (define-public hspec-discover
590 (name "hspec-discover")
595 (uri (string-append "https://hackage.haskell.org/package/"
596 "hspec-discover/hspec-discover-"
600 "04aidzi91ccr9bygmfkjzshz34z9vh8wvqj4zinx2clxq6r7gqfz"))))
601 (build-system haskell-build-system)
603 `(("ghc-quickcheck" ,ghc-quickcheck)
604 ("ghc-hspec-meta" ,ghc-hspec-meta)))
605 (home-page "https://hspec.github.io/")
606 (synopsis "Automatically discover and run Hspec tests")
607 (description "hspec-discover is a tool which automatically discovers and
609 (license license:expat)))
611 (define-public ghc-hspec-core
613 (name "ghc-hspec-core")
618 (uri (string-append "https://hackage.haskell.org/package/hspec-core/"
619 "hspec-core-" version ".tar.gz"))
622 "1vfrqlpn32s9wiykmkxbnrnd5p56yznw20pf8fwzw78ar4wpz55x"))))
623 (build-system haskell-build-system)
624 (arguments `(#:tests? #f)) ; FIXME: testing libraries are missing.
626 `(("ghc-setenv" ,ghc-setenv)
627 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
628 ("ghc-async" ,ghc-async)
629 ("ghc-clock" ,ghc-clock)
630 ("ghc-quickcheck-io" ,ghc-quickcheck-io)
631 ("ghc-hunit" ,ghc-hunit)
632 ("ghc-quickcheck" ,ghc-quickcheck)
633 ("ghc-hspec-expectations" ,ghc-hspec-expectations)
634 ("ghc-silently" ,ghc-silently)))
635 (home-page "https://hspec.github.io/")
636 (synopsis "Testing framework for Haskell")
637 (description "This library exposes internal types and functions that can
638 be used to extend Hspec's functionality.")
639 (license license:expat)))
641 (define-public ghc-hspec-meta
643 (name "ghc-hspec-meta")
648 (uri (string-append "https://hackage.haskell.org/package/hspec-meta/"
649 "hspec-meta-" version ".tar.gz"))
652 "0qmvk01n79j6skn79r6zalg2pd0x0nqqn9qn8mhg0pgyzcdnfc9b"))))
653 (build-system haskell-build-system)
655 `(("ghc-quickcheck" ,ghc-quickcheck)
656 ("ghc-hunit" ,ghc-hunit)
657 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
658 ("ghc-async" ,ghc-async)
659 ("ghc-hspec-expectations" ,ghc-hspec-expectations)
660 ("ghc-setenv" ,ghc-setenv)
661 ("ghc-random" ,ghc-random)
662 ("ghc-quickcheck-io" ,ghc-quickcheck-io)))
663 (home-page "https://hspec.github.io/")
664 (synopsis "Version of Hspec to test Hspec itself")
665 (description "This library provides a stable version of Hspec which is
666 used to test the in-development version of Hspec.")
667 (license license:expat)))
669 (define-public ghc-hspec
676 (uri (string-append "https://hackage.haskell.org/package/hspec/"
677 "hspec-" version ".tar.gz"))
680 "1yv4k5b5kkig2q3waj28587sq28wms7wfav5a3lq4dra6jybimfm"))))
681 (build-system haskell-build-system)
683 `(("ghc-hspec-core" ,ghc-hspec-core)
684 ("hspec-discover" ,hspec-discover)
685 ("ghc-hspec-expectations" ,ghc-hspec-expectations)
686 ("ghc-quickcheck" ,ghc-quickcheck)
687 ("ghc-hunit" ,ghc-hunit)
688 ("ghc-stringbuilder" ,ghc-stringbuilder)
689 ("ghc-hspec-meta" ,ghc-hspec-meta)))
690 (home-page "https://hspec.github.io/")
691 (synopsis "Testing Framework for Haskell")
692 (description "This library provides the Hspec testing framework for
693 Haskell, inspired by the Ruby library RSpec.")
694 (license license:expat)))
696 (define-public ghc-hspec-contrib
698 (name "ghc-hspec-contrib")
702 (uri (string-append "https://hackage.haskell.org/package/"
703 "hspec-contrib/hspec-contrib-"
707 "13579xdqwbsy8k0vxdcvgy932d4p76mij1rzkzbpqbspfn7399yv"))))
708 (build-system haskell-build-system)
710 `(("ghc-hspec-core" ,ghc-hspec-core)
711 ("ghc-hunit" ,ghc-hunit)
712 ("ghc-hspec" ,ghc-hspec)
713 ("ghc-quickcheck" ,ghc-quickcheck)))
715 `(("hspec-discover" ,hspec-discover)))
716 (home-page "https://hspec.github.io/")
717 (synopsis "Contributed functionality for Hspec")
719 "This package provides contributed Hspec extensions.")
720 (license license:expat)))
722 (define-public ghc-hspec-expectations
724 (name "ghc-hspec-expectations")
729 (uri (string-append "https://hackage.haskell.org/package/"
730 "hspec-expectations/hspec-expectations-"
734 "1vxl9zazbaapijr6zmcj72j9wf7ka1pirrjbwddwwddg3zm0g5l1"))))
735 (build-system haskell-build-system)
736 ;; Tests depend on ghc-nanospec.
737 (arguments '(#:tests? #f))
738 (inputs `(("ghc-hunit" ,ghc-hunit)))
739 (home-page "https://github.com/sol/hspec-expectations")
740 (synopsis "Catchy combinators for HUnit")
741 (description "This library provides catchy combinators for HUnit, see
742 @uref{https://github.com/sol/hspec-expectations#readme, the README}.")
743 (license license:expat)))
745 (define-public ghc-nanospec
747 (name "ghc-nanospec")
752 (uri (string-append "https://hackage.haskell.org/package/"
757 "1rcmhl9bhyfvanalnf1r86wkx6rq6wdvagnw1h011jcnnb1cq56g"))))
758 (build-system haskell-build-system)
760 `(("ghc-hspec" ,ghc-hspec)
761 ("ghc-silently" ,ghc-silently)))
762 (home-page "https://github.com/hspec/nanospec#readme")
763 (synopsis "Lightweight implementation of a subset of Hspec's API")
765 "Nanospec is a lightweight implementation of a subset of Hspec's API with
766 minimal dependencies.")
767 (license license:expat)))
769 (define-public ghc-crypto-cipher-tests
771 (name "ghc-crypto-cipher-tests")
776 (uri (string-append "https://hackage.haskell.org/package/"
777 "crypto-cipher-tests-" version "/"
778 "crypto-cipher-tests-" version ".tar.gz"))
781 "19wqignlq90qwpam01hnmmrxaxh5lkax9l1l6rlbi4a07nvp1dnz"))))
782 (build-system haskell-build-system)
783 (inputs `(("ghc-quickcheck" ,ghc-quickcheck)
784 ("ghc-hunit" ,ghc-hunit)
785 ("ghc-test-framework" ,ghc-test-framework)
786 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)
787 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
788 ("ghc-byteable" ,ghc-byteable)
789 ("ghc-securemem" ,ghc-securemem)
790 ("ghc-crypto-cipher-types" ,ghc-crypto-cipher-types)))
791 (home-page "https://github.com/vincenthz/hs-crypto-cipher")
792 (synopsis "Generic cryptography cipher tests for Haskell")
793 (description " This Haskell package contains generic tests for
794 cryptographic ciphers, and is used by the test runners of various Haskell
795 implementations of cryptographic ciphers.")
796 (license license:bsd-3)))
798 (define-public ghc-hedgehog
800 (name "ghc-hedgehog")
806 "mirror://hackage/package/hedgehog/hedgehog-"
811 "0xz10ycdm5vk9nrcym1fi83k19frfwqz18bz8bnpzwvaj0j41yfj"))))
812 (build-system haskell-build-system)
814 `(("ghc-ansi-terminal" ,ghc-ansi-terminal-0.8)
815 ("ghc-async" ,ghc-async)
816 ("ghc-concurrent-output" ,ghc-concurrent-output)
817 ("ghc-exceptions" ,ghc-exceptions)
818 ("ghc-lifted-async" ,ghc-lifted-async)
819 ("ghc-mmorph" ,ghc-mmorph)
820 ("ghc-monad-control" ,ghc-monad-control)
821 ("ghc-pretty-show" ,ghc-pretty-show)
822 ("ghc-primitive" ,ghc-primitive)
823 ("ghc-random" ,ghc-random)
824 ("ghc-resourcet" ,ghc-resourcet)
825 ("ghc-semigroups" ,ghc-semigroups)
826 ("ghc-th-lift" ,ghc-th-lift)
827 ("ghc-transformers-base" ,ghc-transformers-base)
828 ("ghc-wl-pprint-annotated"
829 ,ghc-wl-pprint-annotated)))
830 (home-page "https://hedgehog.qa")
831 (synopsis "Property-based testing in the spirt of QuickCheck")
833 "Hedgehog is a property-based testing system, in the spirit of
834 QuickCheck. Hedgehog uses integrated shrinking, so shrinks obey the invariants
835 of generated values by construction.
837 To get started quickly, see the examples:
838 @uref{https://github.com/hedgehogqa/haskell-hedgehog/tree/master/hedgehog-example}")
839 (license license:bsd-3)))