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 Nikita <nikita@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>
13 ;;; Copyright © 2019 Timothy Sample <samplet@ngyro.com>
14 ;;; Copyright © 2020 John Soo <jsoo1@asu.edu>
16 ;;; This file is part of GNU Guix.
18 ;;; GNU Guix is free software; you can redistribute it and/or modify it
19 ;;; under the terms of the GNU General Public License as published by
20 ;;; the Free Software Foundation; either version 3 of the License, or (at
21 ;;; your option) any later version.
23 ;;; GNU Guix is distributed in the hope that it will be useful, but
24 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
25 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26 ;;; GNU General Public License for more details.
28 ;;; You should have received a copy of the GNU General Public License
29 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
31 (define-module (gnu packages haskell-check)
32 #:use-module (gnu packages)
33 #:use-module (gnu packages haskell-crypto)
34 #:use-module (gnu packages haskell-xyz)
35 #:use-module (guix build-system haskell)
36 #:use-module (guix download)
37 #:use-module ((guix licenses) #:prefix license:)
38 #:use-module (guix packages)
39 #:use-module (guix utils))
41 (define-public ghc-tasty-ant-xml
43 (name "ghc-tasty-ant-xml")
49 "https://hackage.haskell.org/package/tasty-ant-xml/tasty-ant-xml-"
54 "13qqpl1prr9dda87dp45mqybay24n8rhxxgvpc9j34kh72g8j5qw"))))
55 (build-system haskell-build-system)
57 `(("ghc-generic-deriving" ,ghc-generic-deriving)
59 ("ghc-tagged" ,ghc-tagged)
60 ("ghc-tasty" ,ghc-tasty)))
62 "https://github.com/ocharles/tasty-ant-xml")
64 "Render tasty output to XML for Jenkins")
66 "A tasty ingredient to output test results in XML, using the Ant
67 schema. This XML can be consumed by the Jenkins continuous integration
69 (license license:bsd-3)))
71 (define-public ghc-tasty-smallcheck
73 (name "ghc-tasty-smallcheck")
79 "https://hackage.haskell.org/package/tasty-smallcheck/tasty-smallcheck-"
84 "1n66ngzllf3xrlqykwszlkwsi96n5nkm7xbpfq7774vpvfnafjri"))))
85 (build-system haskell-build-system)
87 `(("ghc-tasty" ,ghc-tasty)
88 ("ghc-smallcheck" ,ghc-smallcheck)
89 ("ghc-async" ,ghc-async)
90 ("ghc-tagged" ,ghc-tagged)))
91 (home-page "https://documentup.com/feuerbach/tasty")
92 (synopsis "SmallCheck support for the Tasty test framework")
93 (description "This package provides SmallCheck support for the Tasty
94 Haskell test framework.")
95 (license license:bsd-3)))
97 (define-public ghc-tasty-quickcheck
99 (name "ghc-tasty-quickcheck")
105 "https://hackage.haskell.org/package/tasty-quickcheck/"
106 "tasty-quickcheck-" version ".tar.gz"))
109 "0k4vvd5vmrncv1s6gdf03l4xijwlk428sb9jfx8n1zaz02971msh"))))
110 (build-system haskell-build-system)
112 `(("ghc-quickcheck" ,ghc-quickcheck)
113 ("ghc-tagged" ,ghc-tagged)
114 ("ghc-tasty" ,ghc-tasty)
115 ("ghc-random" ,ghc-random)
116 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
117 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
118 ("ghc-pcre-light" ,ghc-pcre-light)))
119 (home-page "http://documentup.com/feuerbach/tasty")
120 (synopsis "QuickCheck support for the Tasty test framework")
121 (description "This package provides QuickCheck support for the Tasty
122 Haskell test framework.")
123 (license license:expat)))
125 (define-public ghc-tasty-golden
127 (name "ghc-tasty-golden")
133 "https://hackage.haskell.org/package/tasty-golden/tasty-golden-"
138 "0k3ibjhjc9vcwzrjnl4rnwvfm8l81q347nb7dgvcib6n5wm3s404"))))
139 (build-system haskell-build-system)
141 `(("ghc-temporary" ,ghc-temporary)
142 ("ghc-tasty" ,ghc-tasty)
143 ("ghc-optparse-applicative" ,ghc-optparse-applicative)
144 ("ghc-tagged" ,ghc-tagged)
145 ("ghc-async" ,ghc-async)
146 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
147 ("ghc-temporary-rc" ,ghc-temporary-rc)))
149 "https://github.com/feuerbach/tasty-golden")
150 (synopsis "Golden tests support for tasty")
152 "This package provides support for @code{golden testing}. A @dfn{golden
153 test} is an IO action that writes its result to a file. To pass the test, this
154 output file should be identical to the corresponding @code{golden} file, which
155 contains the correct result for the test.")
156 (license license:expat)))
158 (define-public ghc-tasty
166 "https://hackage.haskell.org/package/tasty/tasty-"
171 "0qpn0avpw4w1qq5r2gwh2piipj0llqq6ylagr3xnqiraq6mhg8cc"))))
172 (build-system haskell-build-system)
174 `(("ghc-tagged" ,ghc-tagged)
175 ("ghc-regex-tdfa" ,ghc-regex-tdfa)
176 ("ghc-optparse-applicative" ,ghc-optparse-applicative)
177 ("ghc-unbounded-delays" ,ghc-unbounded-delays)
178 ("ghc-async" ,ghc-async)
179 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
180 ("ghc-clock-bootstrap" ,ghc-clock-bootstrap)
181 ("ghc-wcwidth" ,ghc-wcwidth-bootstrap)))
182 (home-page "http://documentup.com/feuerbach/tasty")
183 (synopsis "Modern and extensible testing framework")
184 (description "Tasty is a modern testing framework for Haskell. It lets
185 you combine your unit tests, golden tests, QuickCheck/SmallCheck properties,
186 and any other types of tests into a single test suite.")
187 (license license:expat)))
189 (define-public ghc-tasty-hedgehog
191 (name "ghc-tasty-hedgehog")
196 (uri (string-append "https://hackage.haskell.org/package/"
197 "tasty-hedgehog/tasty-hedgehog-" version ".tar.gz"))
200 "1mbg5q0c0xfrk4npfj60pi693igb7r5l78x6xf9fk2jglw0nmxhz"))))
201 (build-system haskell-build-system)
203 `(("ghc-tagged" ,ghc-tagged)
204 ("ghc-tasty" ,ghc-tasty)
205 ("ghc-hedgehog" ,ghc-hedgehog)))
207 `(("ghc-tasty-expected-failure" ,ghc-tasty-expected-failure)))
210 ("1" "1n6797fm8swyrk8cw7zxz593gq82wx8dayvm204rmgcz75bslcpn")))
211 (home-page "https://github.com/qfpl/tasty-hedgehog")
212 (synopsis "Integration for tasty and hedgehog")
213 (description "This package provides the means for integrating the
214 @url{https://hackage.haskell.org/package/hedgehog, hedgehog testing library}
215 with the @url{https://hackage.haskell.org/package/tasty, tasty testing
217 (license license:bsd-3)))
219 (define-public ghc-tasty-hspec
221 (name "ghc-tasty-hspec")
227 "mirror://hackage/package/tasty-hspec/tasty-hspec-"
232 "0i9kdzjpk750sa078jj3iyhp72k0177zk7vxl131r6dkyz09x27y"))))
233 (build-system haskell-build-system)
235 `(("ghc-hspec" ,ghc-hspec)
236 ("ghc-hspec-core" ,ghc-hspec-core)
237 ("ghc-quickcheck" ,ghc-quickcheck)
238 ("ghc-tasty" ,ghc-tasty)
239 ("ghc-tasty-smallcheck" ,ghc-tasty-smallcheck)
240 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)))
243 ("4" "1yppwhs2r2rlwrzli9ccv5ldgl95h5p7pqhsr898r3das6daf6sk")))
245 "https://github.com/mitchellwrosen/tasty-hspec")
247 "Hspec support for the Tasty test framework")
249 "This package provides a Tasty provider for Hspec test suites.")
250 (license license:bsd-3)))
252 (define-public ghc-tasty-hunit
254 (name "ghc-tasty-hunit")
260 "https://hackage.haskell.org/package/tasty-hunit/tasty-hunit-"
265 "1xvf5xs0r8xqkcg354klz4wyzwyzvinalyl6f4fnxwqmzrgch8s8"))))
266 (build-system haskell-build-system)
268 `(("ghc-call-stack" ,ghc-call-stack-boot)
269 ("ghc-tasty" ,ghc-tasty)))
270 (home-page "http://documentup.com/feuerbach/tasty")
271 (synopsis "HUnit support for the Tasty test framework")
272 (description "This package provides HUnit support for the Tasty Haskell
274 (license license:expat)))
276 (define-public ghc-tasty-kat
278 (name "ghc-tasty-kat")
282 (uri (string-append "https://hackage.haskell.org/package/"
283 "tasty-kat/tasty-kat-" version ".tar.gz"))
286 "14yvlpli6cv6bn3kh8mlfp4x1l6ns4fvmfv6hmj75cvxyzq029d7"))))
287 (build-system haskell-build-system)
289 `(("ghc-tasty" ,ghc-tasty)
290 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
291 ("ghc-tasty-hunit" ,ghc-tasty-hunit)))
292 (home-page "https://github.com/vincenthz/tasty-kat")
293 (synopsis "Known Answer Tests (KAT) framework for tasty")
295 "This package provides a @dfn{Known Answer Tests} (KAT) framework for
297 (license license:expat)))
299 (define-public ghc-tasty-lua
301 (name "ghc-tasty-lua")
306 (uri (string-append "https://hackage.haskell.org/package/"
307 "tasty-lua/tasty-lua-" version ".tar.gz"))
310 "0xlj36rrhkx312h7smx6ay20rhlhxvw2ma2ckdnzv1pvmdn6p5qx"))))
311 (build-system haskell-build-system)
313 `(("ghc-file-embed" ,ghc-file-embed)
314 ("ghc-hslua" ,ghc-hslua)
315 ("ghc-tasty" ,ghc-tasty)))
317 `(("ghc-tasty-hunit" ,ghc-tasty-hunit)))
318 (home-page "https://github.com/hslua/tasty-lua")
319 (synopsis "Write tests in Lua, integrate into tasty")
320 (description "This package gives users the ability to define tasty tests
322 (license license:expat)))
324 (define-public ghc-tasty-th
326 (name "ghc-tasty-th")
332 "https://hackage.haskell.org/package/tasty-th/tasty-th-"
336 "0b2ivrw2257m4cy4rjnkwqlarh83j1y3zywnmaqqqbvy667sqnj3"))))
337 (build-system haskell-build-system)
339 `(("ghc-haskell-src-exts" ,ghc-haskell-src-exts)
340 ("ghc-tasty" ,ghc-tasty)
341 ("ghc-tasty-hunit" ,ghc-tasty-hunit)))
342 (home-page "https://github.com/bennofs/tasty-th")
343 (synopsis "Automatically generate tasty TestTrees")
345 "Tasty-th automatically generates tasty TestTrees from functions of the
346 current module, using TemplateHaskell. This is a fork the original
347 test-framework-th package, modified to work with tasty instead of
349 (license license:bsd-3)))
351 (define-public ghc-tasty-rerun
353 (name "ghc-tasty-rerun")
358 "https://hackage.haskell.org/package/tasty-rerun/"
359 "tasty-rerun-" version ".tar.gz"))
362 "0s0zj8ds4g1w2cjzm2lh25ivg962jigqdrbj08v3dbz64lx4mlzr"))))
363 (build-system haskell-build-system)
365 `(("ghc-optparse-applicative" ,ghc-optparse-applicative)
366 ("ghc-reducers" ,ghc-reducers)
367 ("ghc-split" ,ghc-split)
368 ("ghc-tagged" ,ghc-tagged)
369 ("ghc-tasty" ,ghc-tasty)))
370 (home-page "https://github.com/ocharles/tasty-rerun")
371 (synopsis "Run tests by filtering the test tree")
372 (description "This package adds the ability to run tests by filtering the
373 test tree based on the result of a previous test run. You can use this to run
374 only those tests that failed in the last run, or to only run the tests that have
375 been added since previous test run.")
376 (license license:bsd-3)))
378 (define-public ghc-tasty-expected-failure
380 (name "ghc-tasty-expected-failure")
385 (uri (string-append "https://hackage.haskell.org/package/"
386 "tasty-expected-failure/tasty-expected-failure-"
390 "175gdk1mkslcwjxajkbl4zmaigzf8h4svzd7va5qb519y0dxk28n"))))
391 (build-system haskell-build-system)
393 `(("ghc-tagged" ,ghc-tagged)
394 ("ghc-tasty" ,ghc-tasty)))
395 (home-page "https://github.com/nomeata/tasty-expected-failure")
396 (synopsis "Mark tasty tests as failure expected")
398 "With the function @code{Test.Tasty.ExpectedFailure.expectFail} in the
399 provided module @code{Test.Tasty.ExpectedFailure}, you can mark that you
400 expect test cases to fail, and not to pass. This can be used for test-driven
402 (license license:expat)))
404 (define-public ghc-quickcheck-instances
406 (name "ghc-quickcheck-instances")
412 "https://hackage.haskell.org/package/"
413 "quickcheck-instances/quickcheck-instances-"
417 "14asr9r7da3w7p4hjj51w2yb002nz8x0np8hdz9z4yjvi60vyrax"))))
418 (build-system haskell-build-system)
421 ("2" "1ia5fjhpg7rz793552v88gv2iqx7hl9mi2g09m0llasy1cpzc9jr")))
423 `(("ghc-quickcheck" ,ghc-quickcheck)
424 ("ghc-base-compat" ,ghc-base-compat)
425 ("ghc-case-insensitive" ,ghc-case-insensitive)
426 ("ghc-hashable" ,ghc-hashable)
427 ("ghc-old-time" ,ghc-old-time)
428 ("ghc-scientific" ,ghc-scientific)
429 ("ghc-tagged" ,ghc-tagged)
430 ("ghc-time-compat" ,ghc-time-compat)
431 ("ghc-transformers-compat" ,ghc-transformers-compat)
432 ("ghc-unordered-containers" ,ghc-unordered-containers)
433 ("ghc-uuid-types" ,ghc-uuid-types)
434 ("ghc-vector" ,ghc-vector)))
435 (home-page "https://github.com/aslatter/qc-instances")
436 (synopsis "Common quickcheck instances")
437 (description "This package provides QuickCheck instances for types
438 provided by the Haskell Platform.")
439 (license license:bsd-3)))
441 (define-public ghc-quickcheck-unicode
443 (name "ghc-quickcheck-unicode")
449 "https://hackage.haskell.org/package/quickcheck-unicode/"
450 "quickcheck-unicode-" version ".tar.gz"))
453 "0s43s1bzbg3gwsjgm7fpyksd1339f0m26dlw2famxwyzgvm0a80k"))))
454 (build-system haskell-build-system)
455 (inputs `(("ghc-quickcheck" ,ghc-quickcheck)))
457 "https://github.com/bos/quickcheck-unicode")
458 (synopsis "Generator functions Unicode-related tests")
459 (description "This package provides generator and shrink functions for
460 testing Unicode-related software.")
461 (license license:bsd-3)))
463 (define-public ghc-quickcheck-io
465 (name "ghc-quickcheck-io")
471 "https://hackage.haskell.org/package/quickcheck-io/quickcheck-io-"
476 "08k4v7pkgjf30pv5j2dfv1gqv6hclxlniyq2sps8zq4zswcr2xzv"))))
477 (build-system haskell-build-system)
479 `(("ghc-quickcheck" ,ghc-quickcheck)
480 ("ghc-hunit" ,ghc-hunit)))
482 "https://github.com/hspec/quickcheck-io#readme")
483 (synopsis "Use HUnit assertions as QuickCheck properties")
484 (description "This package provides an orphan instance that allows you to
485 use HUnit assertions as QuickCheck properties.")
486 (license license:expat)))
488 (define-public ghc-quickcheck
490 (name "ghc-quickcheck")
492 (outputs '("out" "static" "doc"))
497 "https://hackage.haskell.org/package/QuickCheck/QuickCheck-"
502 "0426j43af8v3qmdjjqxivazsvr3a2brac8yw09vpgpjkb2m0nmkv"))))
503 (build-system haskell-build-system)
505 `(#:tests? #f)) ; FIXME: currently missing libraries used for tests.
507 `(("ghc-random" ,ghc-random)
508 ("ghc-splitmix" ,ghc-splitmix-bootstrap)
509 ("ghc-tf-random" ,ghc-tf-random)))
510 (home-page "https://github.com/nick8325/quickcheck")
511 (synopsis "Automatic testing of Haskell programs")
513 "QuickCheck is a library for random testing of program properties. The
514 programmer provides a specification of the program, in the form of properties
515 which functions should satisfy, and QuickCheck then tests that the properties
516 hold in a large number of randomly generated cases. Specifications are
517 expressed in Haskell, using combinators defined in the QuickCheck library.")
518 (license license:bsd-3)))
520 (define-public ghc-test-framework
522 (name "ghc-test-framework")
527 (uri (string-append "https://hackage.haskell.org/package/test-framework/"
528 "test-framework-" version ".tar.gz"))
531 "1hhacrzam6b8f10hyldmjw8pb7frdxh04rfg3farxcxwbnhwgbpm"))))
532 (build-system haskell-build-system)
534 `(#:tests? #f ; FIXME: Tests do not build.
536 ("5" "18g92ajx3ghznd6k3ihj22ln29n676ailzwx3k0f1kj3bmpilnh6")))
538 `(("ghc-hunit" ,ghc-hunit)
539 ("ghc-quickcheck" ,ghc-quickcheck)))
541 `(("ghc-ansi-terminal" ,ghc-ansi-terminal)
542 ("ghc-ansi-wl-pprint" ,ghc-ansi-wl-pprint)
543 ("ghc-hostname" ,ghc-hostname)
544 ("ghc-old-locale" ,ghc-old-locale)
545 ("ghc-random" ,ghc-random)
546 ("ghc-regex-posix" ,ghc-regex-posix)
548 ("ghc-libxml" ,ghc-libxml)
549 ("ghc-semigroups" ,ghc-semigroups-bootstrap)))
550 (home-page "https://batterseapower.github.io/test-framework/")
551 (synopsis "Framework for running and organising tests")
553 "This package allows tests such as QuickCheck properties and HUnit test
554 cases to be assembled into test groups, run in parallel (but reported in
555 deterministic order, to aid diff interpretation) and filtered and controlled
556 by command line options. All of this comes with colored test output, progress
557 reporting and test statistics output.")
558 (license license:bsd-3)))
560 (define-public ghc-test-framework-hunit
562 (name "ghc-test-framework-hunit")
567 (uri (string-append "https://hackage.haskell.org/package/"
568 "test-framework-hunit/test-framework-hunit-"
572 "1y0b6vg8nfm43v90lxxcydhi6qlxhfy4vpxbzm5ic2w55bh8xjwm"))))
573 (build-system haskell-build-system)
576 ("3" "0i9mlalv7cl1iq43ld5myrnpszq5rxmd79hk495dcb08rglhgl3z")))
578 `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
579 ("ghc-hunit" ,ghc-hunit)
580 ("ghc-test-framework" ,ghc-test-framework)))
581 (home-page "https://batterseapower.github.io/test-framework/")
582 (synopsis "HUnit support for test-framework")
584 "This package provides HUnit support for the test-framework package.")
585 (license license:bsd-3)))
587 (define-public ghc-test-framework-quickcheck2
589 (name "ghc-test-framework-quickcheck2")
594 (uri (string-append "https://hackage.haskell.org/package/"
595 "test-framework-quickcheck2/"
596 "test-framework-quickcheck2-" version ".tar.gz"))
599 "0ngf9vvby4nrdf1i7dxf5m9jn0g2pkq32w48xdr92n9hxka7ixn9"))))
600 (build-system haskell-build-system)
603 ("1" "1vmpk70h1594h9s216d3ngkb399fpny1d3sh4gg0vrc75p4as68d")))
605 `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
606 ("ghc-quickcheck" ,ghc-quickcheck)
607 ("ghc-random" ,ghc-random)
608 ("ghc-test-framework" ,ghc-test-framework)))
609 (home-page "https://batterseapower.github.io/test-framework/")
610 (synopsis "QuickCheck2 support for test-framework")
612 "This package provides QuickCheck2 support for the test-framework
614 (license license:bsd-3)))
616 (define-public ghc-test-framework-th
618 (name "ghc-test-framework-th")
623 (uri (string-append "https://hackage.haskell.org/package/"
624 "test-framework-th-" version "/"
625 "test-framework-th-" version ".tar.gz"))
628 "12lw7yj02jb9s0i7rb98jjam43j2h0gzmnbj9zi933fx7sg0sy4b"))))
629 (build-system haskell-build-system)
631 `(("ghc-test-framework" ,ghc-test-framework)
632 ("ghc-language-haskell-extract" ,ghc-language-haskell-extract)
633 ("ghc-haskell-src-exts" ,ghc-haskell-src-exts)
634 ("ghc-regex-posix" ,ghc-regex-posix)))
635 (home-page "https://github.com/finnsson/test-generator")
636 (synopsis "Auto generate the HUnit- and Quickcheck-bulk-code
637 using Template Haskell")
638 (description "This library contains two functions:
639 @code{defaultMainGenerator} and @code{testGroupGenerator}.
641 @code{defaultMainGenerator} will extract all functions beginning with
642 @code{case_}, @code{prop_}, or @code{test_} in the module and put them in a
645 @code{testGroupGenerator} is like @code{defaultMainGenerator} but without
646 @code{defaultMain}. It is useful if you need a function for the testgroup
647 \(e.g. if you want to be able to call the testgroup from another module).")
648 (license license:bsd-3)))
650 (define-public ghc-hunit
654 (outputs '("out" "static" "doc"))
658 (uri (string-append "https://hackage.haskell.org/package/HUnit/"
659 "HUnit-" version ".tar.gz"))
662 "1pnhwqq5v8h48gbp3ibv3skfj25mf4zs5svxcavq93p9cswycj3l"))))
663 (build-system haskell-build-system)
665 ;; We cannot use ghc-call-stack there, because it depends on
666 ;; ghc-nanospec, which depends on ghc-hunit.
667 `(("ghc-call-stack" ,ghc-call-stack-boot)))
668 (home-page "http://hunit.sourceforge.net/")
669 (synopsis "Unit testing framework for Haskell")
671 "HUnit is a unit testing framework for Haskell, inspired by the
672 JUnit tool for Java.")
673 (license license:bsd-3)))
675 (define-public hspec-discover
677 (name "hspec-discover")
682 (uri (string-append "https://hackage.haskell.org/package/"
683 "hspec-discover/hspec-discover-"
687 "0r47fm94wa6qrhp8cc1zzkjrxc32rnagfn9m9ga4dm6p6ydw4c8b"))))
688 (build-system haskell-build-system)
690 `(("ghc-quickcheck" ,ghc-quickcheck)
691 ("ghc-hspec-meta" ,ghc-hspec-meta)))
692 (home-page "https://hspec.github.io/")
693 (synopsis "Automatically discover and run Hspec tests")
694 (description "hspec-discover is a tool which automatically discovers and
696 (license license:expat)))
698 (define-public ghc-hspec-core
700 (name "ghc-hspec-core")
705 (uri (string-append "https://hackage.haskell.org/package/hspec-core/"
706 "hspec-core-" version ".tar.gz"))
709 "08vk8588lap00hsln8zl64dazbb28lzk4b4h5vnm7xvhg7r21k1c"))))
710 (build-system haskell-build-system)
711 (arguments `(#:tests? #f)) ; FIXME: testing libraries are missing.
713 `(("ghc-setenv" ,ghc-setenv)
714 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
715 ("ghc-clock" ,ghc-clock)
716 ("ghc-quickcheck-io" ,ghc-quickcheck-io)
717 ("ghc-hunit" ,ghc-hunit)
718 ("ghc-quickcheck" ,ghc-quickcheck)
719 ("ghc-hspec-expectations" ,ghc-hspec-expectations)
720 ("ghc-silently" ,ghc-silently)
721 ("ghc-tf-random" ,ghc-tf-random)))
722 (home-page "https://hspec.github.io/")
723 (synopsis "Testing framework for Haskell")
724 (description "This library exposes internal types and functions that can
725 be used to extend Hspec's functionality.")
726 (license license:expat)))
728 (define-public ghc-hspec-meta
730 (name "ghc-hspec-meta")
735 (uri (string-append "https://hackage.haskell.org/package/hspec-meta/"
736 "hspec-meta-" version ".tar.gz"))
739 "1n1a4633wfivylglji8920f67mx7qz8j4q58n8p7dxk6yg4h3mz6"))))
740 (build-system haskell-build-system)
742 `(("ghc-quickcheck" ,ghc-quickcheck)
743 ("ghc-hunit" ,ghc-hunit)
744 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
745 ("ghc-clock" ,ghc-clock)
746 ("ghc-hspec-expectations" ,ghc-hspec-expectations)
747 ("ghc-setenv" ,ghc-setenv)
748 ("ghc-random" ,ghc-random)
749 ("ghc-quickcheck-io" ,ghc-quickcheck-io)))
750 (home-page "https://hspec.github.io/")
751 (synopsis "Version of Hspec to test Hspec itself")
752 (description "This library provides a stable version of Hspec which is
753 used to test the in-development version of Hspec.")
754 (license license:expat)))
756 (define-public ghc-hspec
763 (uri (string-append "https://hackage.haskell.org/package/hspec/"
764 "hspec-" version ".tar.gz"))
767 "1x8rcr7j1azcaw0fg1xzp8j0gr4ias36z09aj24i4xp8pnyfp341"))))
768 (build-system haskell-build-system)
769 (outputs '("out" "static" "doc"))
771 `(("ghc-hspec-core" ,ghc-hspec-core)
772 ("hspec-discover" ,hspec-discover)
773 ("ghc-hspec-expectations" ,ghc-hspec-expectations)
774 ("ghc-quickcheck" ,ghc-quickcheck)
775 ("ghc-hunit" ,ghc-hunit)
776 ("ghc-stringbuilder" ,ghc-stringbuilder)
777 ("ghc-hspec-meta" ,ghc-hspec-meta)))
778 (home-page "https://hspec.github.io/")
779 (synopsis "Testing Framework for Haskell")
780 (description "This library provides the Hspec testing framework for
781 Haskell, inspired by the Ruby library RSpec.")
782 (license license:expat)))
784 (define-public ghc-hspec-contrib
786 (name "ghc-hspec-contrib")
790 (uri (string-append "https://hackage.haskell.org/package/"
791 "hspec-contrib/hspec-contrib-"
795 "0hhzxaa3fxz5mk5qcsrnfr98a7bn3szx2ydgr0x9mbqmm1jg06rc"))))
796 (build-system haskell-build-system)
798 `(("ghc-hspec-core" ,ghc-hspec-core)
799 ("ghc-hunit" ,ghc-hunit)
800 ("ghc-hspec" ,ghc-hspec)
801 ("ghc-quickcheck" ,ghc-quickcheck)))
803 `(("hspec-discover" ,hspec-discover)))
804 (home-page "https://hspec.github.io/")
805 (synopsis "Contributed functionality for Hspec")
807 "This package provides contributed Hspec extensions.")
808 (license license:expat)))
810 (define-public ghc-hspec-expectations
812 (name "ghc-hspec-expectations")
817 (uri (string-append "https://hackage.haskell.org/package/"
818 "hspec-expectations/hspec-expectations-"
822 "1vxl9zazbaapijr6zmcj72j9wf7ka1pirrjbwddwwddg3zm0g5l1"))))
823 (build-system haskell-build-system)
824 ;; Tests depend on ghc-nanospec.
825 (arguments '(#:tests? #f))
826 (inputs `(("ghc-hunit" ,ghc-hunit)))
827 (home-page "https://github.com/sol/hspec-expectations")
828 (synopsis "Catchy combinators for HUnit")
829 (description "This library provides catchy combinators for HUnit, see
830 @uref{https://github.com/sol/hspec-expectations#readme, the README}.")
831 (license license:expat)))
833 (define-public ghc-nanospec
835 (name "ghc-nanospec")
840 (uri (string-append "https://hackage.haskell.org/package/"
845 "1rcmhl9bhyfvanalnf1r86wkx6rq6wdvagnw1h011jcnnb1cq56g"))))
846 (build-system haskell-build-system)
848 `(("ghc-hspec" ,ghc-hspec)
849 ("ghc-silently" ,ghc-silently)))
850 (home-page "https://github.com/hspec/nanospec#readme")
851 (synopsis "Lightweight implementation of a subset of Hspec's API")
853 "Nanospec is a lightweight implementation of a subset of Hspec's API with
854 minimal dependencies.")
855 (license license:expat)))
857 (define-public ghc-crypto-cipher-tests
859 (name "ghc-crypto-cipher-tests")
864 (uri (string-append "https://hackage.haskell.org/package/"
865 "crypto-cipher-tests-" version "/"
866 "crypto-cipher-tests-" version ".tar.gz"))
869 "19wqignlq90qwpam01hnmmrxaxh5lkax9l1l6rlbi4a07nvp1dnz"))))
870 (build-system haskell-build-system)
871 (inputs `(("ghc-quickcheck" ,ghc-quickcheck)
872 ("ghc-hunit" ,ghc-hunit)
873 ("ghc-test-framework" ,ghc-test-framework)
874 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)
875 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
876 ("ghc-byteable" ,ghc-byteable)
877 ("ghc-securemem" ,ghc-securemem)
878 ("ghc-crypto-cipher-types" ,ghc-crypto-cipher-types)))
879 (home-page "https://github.com/vincenthz/hs-crypto-cipher")
880 (synopsis "Generic cryptography cipher tests for Haskell")
881 (description " This Haskell package contains generic tests for
882 cryptographic ciphers, and is used by the test runners of various Haskell
883 implementations of cryptographic ciphers.")
884 (license license:bsd-3)))
886 (define-public ghc-hedgehog
888 (name "ghc-hedgehog")
894 "mirror://hackage/package/hedgehog/hedgehog-"
899 "1qc7hkqbnsk3f5r26wc35r3qiy941nmcxhfqgcq9027kw4gs0bi0"))))
900 (build-system haskell-build-system)
902 `(("ghc-ansi-terminal" ,ghc-ansi-terminal)
903 ("ghc-async" ,ghc-async)
904 ("ghc-concurrent-output" ,ghc-concurrent-output)
905 ("ghc-exceptions" ,ghc-exceptions)
906 ("ghc-fail" ,ghc-fail)
907 ("ghc-lifted-async" ,ghc-lifted-async)
908 ("ghc-mmorph" ,ghc-mmorph)
909 ("ghc-monad-control" ,ghc-monad-control)
910 ("ghc-pretty-show" ,ghc-pretty-show)
911 ("ghc-primitive" ,ghc-primitive)
912 ("ghc-random" ,ghc-random)
913 ("ghc-resourcet" ,ghc-resourcet)
914 ("ghc-semigroups" ,ghc-semigroups)
915 ("ghc-th-lift" ,ghc-th-lift)
916 ("ghc-transformers-base" ,ghc-transformers-base)
917 ("ghc-wl-pprint-annotated"
918 ,ghc-wl-pprint-annotated)))
919 (home-page "https://hedgehog.qa")
920 (synopsis "Property-based testing in the spirt of QuickCheck")
922 "Hedgehog is a property-based testing system, in the spirit of
923 QuickCheck. Hedgehog uses integrated shrinking, so shrinks obey the invariants
924 of generated values by construction.
926 To get started quickly, see the examples:
927 @uref{https://github.com/hedgehogqa/haskell-hedgehog/tree/master/hedgehog-example}")
928 (license license:bsd-3)))
930 (define-public cabal-doctest
932 (name "cabal-doctest")
937 (uri (string-append "https://hackage.haskell.org/package/"
938 "cabal-doctest/cabal-doctest-"
942 "03if74imlhhk7m56nci5f1wclniwqdmwl4hl177040j1gnlac9i0"))))
943 (build-system haskell-build-system)
944 (home-page "https://github.com/phadej/cabal-doctest")
945 (synopsis "Setup.hs helper for running doctests")
947 "To properly work, the @code{doctest} package needs plenty of
948 configuration. This library provides the common bits for writing custom
949 @file{Setup.hs} files.")
950 (license license:bsd-3)))
952 (define-public ghc-testing-type-modifiers
954 (name "ghc-testing-type-modifiers")
959 (uri (string-append "https://hackage.haskell.org/package/"
960 "testing-type-modifiers/testing-type-modifiers-"
964 "1wh2n95n39ivv6kbqn42vbzrj8zagsmk6f2al2qj40bg5kgdl2q5"))))
965 (build-system haskell-build-system)
966 (home-page "https://hackage.haskell.org/package/testing-type-modifiers")
967 (synopsis "Data type modifiers for property based testing")
968 (description "Property based testing libraries such as QuickCheck tend to
969 include type modifiers. Most of them are used to quantify over subsets of a
970 type. This library is intended to supply these modifiers to be used by
971 testing libraries, in an effort to make properties more portable between
972 testing frameworks.")
973 (license license:unlicense)))
975 (define-public ghc-testing-feat
977 (name "ghc-testing-feat")
982 (uri (string-append "https://hackage.haskell.org/package/"
983 "testing-feat/testing-feat-" version ".tar.gz"))
986 "1v2qzzpf1s008g7q6q67glf7vbm1pkpq4rc3ii74f4g6vhfx610r"))))
987 (build-system haskell-build-system)
989 `(("ghc-quickcheck" ,ghc-quickcheck)
990 ("ghc-size-based" ,ghc-size-based)
991 ("ghc-testing-type-modifiers" ,ghc-testing-type-modifiers)
992 ("ghc-semigroups" ,ghc-semigroups)))
993 (home-page "https://github.com/JonasDuregard/testing-feat")
994 (synopsis "Functional Enumeration of Algebraic Types")
995 (description "Feat (Functional Enumeration of Algebraic Types)
996 provides enumerations as functions from natural numbers to
997 values (similar to @code{toEnum} but for any algebraic data type). This
998 can be used for SmallCheck-style systematic testing, QuickCheck-style
999 random testing, and hybrids of the two.")
1000 (license license:bsd-3)))
1002 (define-public ghc-inspection-testing
1004 (name "ghc-inspection-testing")
1010 "https://hackage.haskell.org/package/inspection-testing/"
1011 "inspection-testing-" version ".tar.gz"))
1014 "1bppz99p6ix6hah8lbr9mapl2zxgmkg9i7h6hk8wq6zf54hwz3yp"))))
1015 (build-system haskell-build-system)
1017 "https://github.com/nomeata/inspection-testing")
1018 (synopsis "GHC plugin to do inspection testing")
1020 "Some carefully crafted libraries make promises to their users beyond
1021 functionality and performance.
1023 Examples are: Fusion libraries promise intermediate data structures to be
1024 eliminated. Generic programming libraries promise that the generic
1025 implementation is identical to the hand-written one. Some libraries may
1026 promise allocation-free or branch-free code.
1028 Conventionally, the modus operandi in all these cases is that the library
1029 author manually inspects the (intermediate or final) code produced by the
1030 compiler. This is not only tedious, but makes it very likely that some change,
1031 either in the library itself or the surrounding eco-system, breaks the
1032 library's promised without anyone noticing.
1034 This package provides a disciplined way of specifying such properties, and
1035 have them checked by the compiler. This way, this checking can be part of the
1036 ususal development cycle and regressions caught early.
1038 See the documentation in \"Test.Inspection\" or the project webpage for more
1039 examples and more information.")
1040 (license license:expat)))