-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…#257) * [#252] Switch testing from 'tasty-*' libraries to 'hspec-*' libraries Resolves #252 * Fix 8.2 and Stack CI builds
- Loading branch information
Showing
25 changed files
with
483 additions
and
353 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,3 +56,5 @@ TAGS | |
|
||
# other | ||
.DS_Store | ||
|
||
.golden/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
resolver: nightly-2019-10-10 | ||
resolver: lts-15.11 | ||
|
||
extra-deps: | ||
- hspec-hedgehog-0.0.1.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,36 @@ | ||
{-# OPTIONS_GHC -F -pgmF tasty-discover #-} | ||
module Main (main) where | ||
|
||
import Test.Hspec (hspec) | ||
import Test.Hspec.Hedgehog (modifyMaxDiscardRatio) | ||
|
||
import Test.Toml.BiCode.Property (biCodePropertySpec) | ||
import Test.Toml.BiMap.Property (biMapPropertySpec) | ||
import Test.Toml.Parsing.Examples (parsingExamplesSpec) | ||
import Test.Toml.Parsing.Property (parsingPropertySpec) | ||
import Test.Toml.Parsing.Unit (parsingUnitSpec) | ||
import Test.Toml.PrefixTree.Property (prefixTreePropertySpec) | ||
import Test.Toml.PrefixTree.Unit (prefixTreeUnitSpec) | ||
import Test.Toml.Printer.Golden (prettyPrinterGoldenSpec) | ||
import Test.Toml.TOML.Property (tomlLawsSpec) | ||
|
||
|
||
{- Default QuickCheck discard Ratio is 10 while @hedgehog@s is 100. | ||
So we need to modify it manually in here. | ||
See issue: <https://github.com/parsonsmatt/hspec-hedgehog/issues/9> | ||
-} | ||
main :: IO () | ||
main = hspec $ modifyMaxDiscardRatio (+ 90) $ do | ||
biCodePropertySpec | ||
biMapPropertySpec | ||
-- parsing | ||
parsingExamplesSpec | ||
parsingPropertySpec | ||
parsingUnitSpec | ||
-- prefix tree | ||
prefixTreePropertySpec | ||
prefixTreeUnitSpec | ||
-- Printer | ||
prettyPrinterGoldenSpec | ||
-- toml | ||
tomlLawsSpec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.