2021-08-05 14:51:48 -05:00
|
|
|
import ChatClient
|
2021-07-07 16:46:38 -05:00
|
|
|
import ChatTests
|
2022-04-25 10:30:21 -05:00
|
|
|
-- import Control.Logger.Simple
|
2022-05-14 11:10:46 -05:00
|
|
|
import Control.Concurrent (threadDelay)
|
2021-05-09 04:53:18 -05:00
|
|
|
import MarkdownTests
|
2022-02-06 10:18:01 -06:00
|
|
|
import MobileTests
|
2021-07-04 12:42:24 -05:00
|
|
|
import ProtocolTests
|
2022-04-05 03:44:22 -05:00
|
|
|
import SchemaDump
|
2021-05-09 04:53:18 -05:00
|
|
|
import Test.Hspec
|
|
|
|
|
|
|
|
main :: IO ()
|
2022-04-25 10:30:21 -05: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 11:10:46 -05: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 10:30:21 -05:00
|
|
|
describe "SimpleX chat client" chatTests
|
|
|
|
describe "Schema dump" schemaDumpTest
|
|
|
|
|
|
|
|
-- logCfg :: LogConfig
|
|
|
|
-- logCfg = LogConfig {lc_file = Nothing, lc_stderr = True}
|