mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-16 09:51:59 +03:00
e7929f9661
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9431 GitOrigin-RevId: 24ddc07a7036ed3032fafebe3b39c698caf08ae0
35 lines
1.2 KiB
Haskell
35 lines
1.2 KiB
Haskell
module Main (main) where
|
|
|
|
import qualified Test.Framework as Test
|
|
import Database.Redis
|
|
import Tests
|
|
import PubSubTest
|
|
|
|
main :: IO ()
|
|
main = do
|
|
conn <- connect defaultConnectInfo
|
|
Test.defaultMain (tests conn)
|
|
|
|
tests :: Connection -> [Test.Test]
|
|
tests conn = map ($ conn) $ concat
|
|
[ testsMisc, testsKeys, testsStrings, [testHashes], testsLists, testsSets, [testHyperLogLog]
|
|
, testsZSets, [testPubSub], [testTransaction], [testScripting]
|
|
, testsConnection, testsServer, [testScans, testSScan, testHScan, testZScan], [testZrangelex]
|
|
, [testXAddRead, testXReadGroup, testXRange, testXpending, testXClaim, testXInfo, testXDel, testXTrim]
|
|
, testPubSubThreaded
|
|
-- should always be run last as connection gets closed after it
|
|
, [testQuit]
|
|
]
|
|
|
|
testsServer :: [Test]
|
|
testsServer =
|
|
[testServer, testBgrewriteaof, testFlushall, testInfo, testConfig
|
|
,testSlowlog, testDebugObject]
|
|
|
|
testsConnection :: [Test]
|
|
testsConnection = [ testConnectAuth, testConnectAuthUnexpected, testConnectDb
|
|
, testConnectDbUnexisting, testEcho, testPing, testSelect ]
|
|
|
|
testsKeys :: [Test]
|
|
testsKeys = [ testKeys, testKeysNoncluster, testExpireAt, testSort, testGetType, testObject ]
|