Add basic testing infrastructure

What sort of tests we'll be able to add is yet to be figured out, but
this at least puts a no-op, hspec-based testing target in place.
This commit is contained in:
patrick brisbin 2016-01-03 10:31:14 -05:00
parent 7354c36e13
commit 3c24e0ff07
No known key found for this signature in database
GPG Key ID: ADB6812F871D4478
3 changed files with 25 additions and 0 deletions

1
test/Spec.hs Normal file
View File

@ -0,0 +1 @@
{-# OPTIONS_GHC -F -pgmF hspec-discover #-}

View File

@ -0,0 +1,15 @@
module Yesod.Auth.OAuth2Spec
( main
, spec
) where
import Test.Hspec
import Yesod.Auth.OAuth2
main :: IO ()
main = hspec spec
spec :: Spec
spec = describe "authOAuth2" $
it "works" $
True `shouldBe` True

View File

@ -50,6 +50,15 @@ library
ghc-options: -Wall
test-suite test
type: exitcode-stdio-1.0
main-is: Spec.hs
hs-source-dirs: test
ghc-options: -Wall
build-depends: base
, yesod-auth-oauth2
, hspec
source-repository head
type: git
location: https://github.com/thoughtbot/yesod-auth-oauth2.git