2021-08-05 20:51:48 +01:00
|
|
|
import ChatClient
|
2021-07-07 22:46:38 +01:00
|
|
|
import ChatTests
|
2022-04-25 16:30:21 +01:00
|
|
|
-- import Control.Logger.Simple
|
2022-05-14 20:10:46 +04:00
|
|
|
import Control.Concurrent (threadDelay)
|
2021-05-09 10:53:18 +01:00
|
|
|
import MarkdownTests
|
2022-02-06 16:18:01 +00:00
|
|
|
import MobileTests
|
2021-07-04 18:42:24 +01:00
|
|
|
import ProtocolTests
|
2022-04-05 12:44:22 +04:00
|
|
|
import SchemaDump
|
2021-05-09 10:53:18 +01:00
|
|
|
import Test.Hspec
|
|
|
|
|
|
|
|
main :: IO ()
|
2022-04-25 16:30:21 +01:00
|
|
|
main = do
|
|
|
|
-- setLogLevel LogDebug -- LogError
|
|
|
|
-- withGlobalLogging logCfg $
|
|
|
|
withSmpServer . hspec $ do
|
|
|
|
describe "SimpleX chat markdown" markdownTests
|
|
|
|
describe "SimpleX chat protocol" protocolTests
|
|
|
|
describe "Mobile API Tests" mobileTests
|
2022-05-14 20:10:46 +04:00
|
|
|
-- Workaround for SQLite IO error in first test after mobile tests on Mac
|
|
|
|
it "Delay after Mobile API Tests" $ threadDelay 100000
|
2022-04-25 16:30:21 +01:00
|
|
|
describe "SimpleX chat client" chatTests
|
|
|
|
describe "Schema dump" schemaDumpTest
|
|
|
|
|
|
|
|
-- logCfg :: LogConfig
|
|
|
|
-- logCfg = LogConfig {lc_file = Nothing, lc_stderr = True}
|