purescript-threading/test/Test/Main.purs

24 lines
806 B
Haskell
Raw Normal View History

2024-05-14 16:41:29 +00:00
module Test.Main where
import Prelude
import Data.Maybe (Maybe(..))
import Effect (Effect)
import Effect.Aff (launchAff_)
2024-07-16 17:55:45 +00:00
import Effect.Aff as Aff
import Test.Spec (it)
2024-05-14 16:41:29 +00:00
import Test.Spec.Reporter (specReporter)
import Test.Spec.Runner (defaultConfig, runSpec')
2024-07-16 17:55:45 +00:00
import Test.Threading.Barrier as Test.Threading.Barrier
import Test.Threading.Channel as Test.Threading.Channel
import Test.Threading.Data.Mutex as Test.Threading.Data.Mutex
import Test.Threading.Data.RWLock as Test.Threading.Data.RWLock
2024-05-14 16:41:29 +00:00
main :: Effect Unit
2024-07-16 17:55:45 +00:00
main = launchAff_ $ Aff.supervise $ runSpec' (defaultConfig { failFast = true, timeout = Nothing }) [ specReporter ] do
Test.Threading.Data.Mutex.spec
Test.Threading.Data.RWLock.spec
Test.Threading.Channel.spec
Test.Threading.Barrier.spec
it "all tests were run" $ pure unit