mirror of
https://github.com/freckle/yesod-auth-oauth2.git
synced 2026-01-11 19:58:28 +01:00
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:
parent
7354c36e13
commit
3c24e0ff07
1
test/Spec.hs
Normal file
1
test/Spec.hs
Normal file
@ -0,0 +1 @@
|
||||
{-# OPTIONS_GHC -F -pgmF hspec-discover #-}
|
||||
15
test/Yesod/Auth/OAuth2Spec.hs
Normal file
15
test/Yesod/Auth/OAuth2Spec.hs
Normal 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
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user