packages feed

hspec-webdriver 1.2.0 → 1.2.1

raw patch · 4 files changed

+21/−16 lines, 4 filesdep ~hspecdep ~hspec-coresetup-changednew-uploaderPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependency ranges changed: hspec, hspec-core

API changes (from Hackage documentation)

- Test.Hspec.WebDriver: instance GHC.Exception.Exception Test.Hspec.WebDriver.AbortSession
+ Test.Hspec.WebDriver: instance GHC.Exception.Type.Exception Test.Hspec.WebDriver.AbortSession
- Test.Hspec.WebDriver: WdExample :: multi -> WdOptions -> (WD ()) -> WdExample multi
+ Test.Hspec.WebDriver: WdExample :: multi -> WdOptions -> WD () -> WdExample multi
- Test.Hspec.WebDriver: WdPending :: (Maybe String) -> WdExample multi
+ Test.Hspec.WebDriver: WdPending :: Maybe String -> WdExample multi
- Test.Hspec.WebDriver: context :: String -> SpecWith a -> SpecWith a
+ Test.Hspec.WebDriver: context :: HasCallStack => String -> SpecWith a -> SpecWith a
- Test.Hspec.WebDriver: data Capabilities :: *
+ Test.Hspec.WebDriver: data Capabilities
- Test.Hspec.WebDriver: data WD a :: * -> *
+ Test.Hspec.WebDriver: data WD a
- Test.Hspec.WebDriver: describe :: String -> SpecWith a -> SpecWith a
+ Test.Hspec.WebDriver: describe :: HasCallStack => String -> SpecWith a -> SpecWith a
- Test.Hspec.WebDriver: specify :: Example a => String -> a -> SpecWith (Arg a)
+ Test.Hspec.WebDriver: specify :: (HasCallStack, Example a) => String -> a -> SpecWith (Arg a)

Files

Changelog.md view
@@ -1,3 +1,8 @@+## 1.2.1++* Fix build with hspec >= 2.5+* move to lts-12.9+ ## 1.2.0  *   The way capabilities are handled was simplified.  In the old API (1.1.0 and below) there was a typeclass TestCapabilities
− Setup.hs
@@ -1,2 +0,0 @@-import Distribution.Simple-main = defaultMain
Test/Hspec/WebDriver.hs view
@@ -111,7 +111,8 @@  import qualified Test.Hspec as H import Test.Hspec hiding (shouldReturn, shouldBe, shouldSatisfy, shouldThrow, pending, pendingWith, example)-import Test.Hspec.Core.Spec (Result(..), Item(..), Example(..), SpecTree, Tree(..), fromSpecList, runSpecM)+import Test.Hspec.Core.Spec (Result(..), ResultStatus(..))+import Test.Hspec.Core.Spec (Item(..), Example(..), SpecTree, Tree(..), fromSpecList, runSpecM)  import Test.WebDriver (WD, Capabilities) import qualified Test.WebDriver as W@@ -398,7 +399,7 @@  instance Eq multi => Example (WdExample multi) where     type Arg (WdExample multi) = WdTestSession multi-    evaluateExample (WdPending msg) _ _ _ = return $ Pending msg+    evaluateExample (WdPending msg) _ _ _ = return $ Result "" (Pending Nothing msg)     evaluateExample (WdExample multi (WdOptions {skipRemainingTestsAfterFailure}) wd) _ act _ = do         prevHadError <- newIORef False         aborted <- newIORef False@@ -445,9 +446,9 @@         merr <- readIORef prevHadError         mabort <- readIORef aborted         return $ case (merr, mabort) of-            (True, _) -> Pending (Just "Previous example had an error")-            (_, True) -> Pending (Just "Session has been aborted")-            _ -> Success+            (True, _) -> Result "" (Pending Nothing (Just "Previous example had an error"))+            (_, True) -> Result "" (Pending Nothing (Just "Session has been aborted"))+            _ -> Result "" Success  -------------------------------------------------------------------------------- --- Utils
hspec-webdriver.cabal view
@@ -1,14 +1,14 @@ name:              hspec-webdriver-version:           1.2.0-cabal-version:     >= 1.8+version:           1.2.1+cabal-version:     >= 1.10 build-type:        Simple synopsis:          Write end2end web application tests using webdriver and hspec category:          Web author:            John Lenz <lenz@math.uic.edu>-maintainer:        John Lenz <lenz@math.uic.edu>+maintainer:        John Lenz <lenz@math.uic.edu>, Divam <dfordivam@gmail.com> license:           MIT license-file:      LICENSE-homepage:          https://bitbucket.org/wuzzeb/webdriver-utils+homepage:          https://github.com/dfordivam/hspec-webdriver-clone stability:         Experimental description:       For end to end testing of web applications from Haskell, the                     <https://hackage.haskell.org/package/webdriver webdriver> package is a great tool but just@@ -19,13 +19,14 @@                     Changelog.md  source-repository head-    type: mercurial-    location: https://bitbucket.org/wuzzeb/webdriver-utils+    type: git+    location: https://github.com/dfordivam/hspec-webdriver-clone.git  library     hs-source-dirs:  .     exposed-modules:  Test.Hspec.WebDriver-    ghc-options:   -Wall -O2+    ghc-options:   -Wall+    default-language: Haskell98      build-depends: base                 >= 4          && < 5 @@ -33,8 +34,8 @@                  , aeson                >= 0.8                  , data-default         >= 0.5                  , hashable             >= 1.2-                 , hspec-core           >= 2.0-                 , hspec                >= 2.0+                 , hspec-core           >= 2.0 && < 2.8+                 , hspec                >= 2.0 && < 2.8                  , lifted-base          >= 0.2                  , stm                  >= 2.4                  , text                 >= 0.11