packages feed

tasty 0.11.0.3 → 0.11.0.4

raw patch · 6 files changed

+36/−3 lines, 6 filesdep ~optparse-applicativePVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependency ranges changed: optparse-applicative

API changes (from Hackage documentation)

- Test.Tasty.Options: Option :: Proxy v -> OptionDescription
+ Test.Tasty.Options: [Option] :: IsOption v => Proxy v -> OptionDescription
- Test.Tasty.Options: changeOption :: IsOption v => (v -> v) -> OptionSet -> OptionSet
+ Test.Tasty.Options: changeOption :: forall v. IsOption v => (v -> v) -> OptionSet -> OptionSet
- Test.Tasty.Options: flagCLParser :: IsOption v => Maybe Char -> v -> Parser v
+ Test.Tasty.Options: flagCLParser :: forall v. IsOption v => Maybe Char -> v -> Parser v
- Test.Tasty.Options: lookupOption :: IsOption v => OptionSet -> v
+ Test.Tasty.Options: lookupOption :: forall v. IsOption v => OptionSet -> v

Files

CHANGELOG.md view
@@ -1,6 +1,11 @@ Changes ======= +Version 0.11.0.4+----------------++Fix compatibility with `optparse-applicative-0.13`+ Version 0.11.0.3 ---------------- 
Test/Tasty.hs view
@@ -45,7 +45,29 @@ defaultIngredients :: [Ingredient] defaultIngredients = [listingTests, consoleTestReporter] --- | Parse the command line arguments and run the tests+-- | Parse the command line arguments and run the tests.+--+-- When the tests finish, this function calls 'exitWith' with the exit code+-- that indicates whether any tests have failed. Most external systems+-- (stack, cabal, travis-ci, jenkins etc.) rely on the exit code to detect+-- whether the tests pass. If you want to do something else after+-- `defaultMain` returns, you need to catch the exception and then re-throw+-- it. Example:+--+-- >import Test.Tasty+-- >import Test.Tasty.HUnit+-- >import System.Exit+-- >import Control.Exception+-- >+-- >test = testCase "Test 1" (2 @?= 3)+-- >+-- >main = defaultMain test+-- >  `catch` (\e -> do+-- >    if e == ExitSuccess+-- >      then putStrLn "Yea"+-- >      else putStrLn "Nay"+-- >    throwIO e)+ defaultMain :: TestTree -> IO () defaultMain = defaultMainWithIngredients defaultIngredients 
Test/Tasty/CmdLine.hs view
@@ -32,7 +32,11 @@ suiteOptionParser ins tree = optionParser $ suiteOptions ins tree  -- | Parse the command line arguments and run the tests using the provided--- ingredient list+-- ingredient list.+--+-- When the tests finish, this function calls 'exitWith' with the exit code+-- that indicates whether any tests have failed. See 'defaultMain' for+-- details. defaultMainWithIngredients :: [Ingredient] -> TestTree -> IO () defaultMainWithIngredients ins testTree = do   cmdlineOpts <- execParser $
Test/Tasty/Options/Core.hs view
@@ -14,6 +14,7 @@ import Data.Proxy import Data.Tagged import Data.Fixed+import Data.Monoid import Options.Applicative import GHC.Conc 
Test/Tasty/Patterns.hs view
@@ -47,6 +47,7 @@ import Data.Tagged  import Options.Applicative+import Data.Monoid  data Token = SlashToken            | WildcardToken
tasty.cabal view
@@ -2,7 +2,7 @@ --  see http://haskell.org/cabal/users-guide/  name:                tasty-version:             0.11.0.3+version:             0.11.0.4 synopsis:            Modern and extensible testing framework description:         Tasty is a modern testing framework for Haskell.                      It lets you combine your unit tests, golden