optParser :: Parser TestOptions
optParser = TestOptions
- <$> snd (tastyParser (tests 1 False (TestOptions mempty False False Nothing mempty False mempty)))
+ <$> snd (tastyParser (tests 1 False defaulttos))
<*> switch
( long "keep-failures"
<> help "preserve repositories on test failure"
( Git.Types.ConfigKey (encodeBS k)
, Git.Types.ConfigValue (encodeBS (drop 1 v))
)
+ defaulttos = TestOptions
+ { tastyOptionSet = mempty
+ , keepFailuresOption = False
+ , fakeSsh = False
+ , concurrentJobs = Nothing
+ , testGitConfig = mempty
+ , testDebug = False
+ , internalData = mempty
+ }
runner :: TestOptions -> IO ()
runner opts = parallelTestRunner opts tests