File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -148,6 +148,7 @@ type TestArgs =
148
148
, pursArgs :: List String
149
149
, backendArgs :: List String
150
150
, execArgs :: Maybe (Array String )
151
+ , main :: Maybe String
151
152
, strict :: Maybe Boolean
152
153
, statVerbosity :: Maybe Core.StatVerbosity
153
154
, pure :: Boolean
@@ -373,6 +374,7 @@ testArgsParser = Optparse.fromRecord
373
374
, pursArgs: Flags .pursArgs
374
375
, backendArgs: Flags .backendArgs
375
376
, execArgs: Flags .execArgs
377
+ , main: Flags .moduleName
376
378
, output: Flags .output
377
379
, pedanticPackages: Flags .pedanticPackages
378
380
, strict: Flags .strict
@@ -803,7 +805,7 @@ mkTestEnv testArgs { dependencies, purs } = do
803
805
testConf :: forall x . (TestConfig -> Maybe x ) -> Maybe x
804
806
testConf f = selected.package.test >>= f
805
807
806
- moduleName = fromMaybe " Test.Main" (testConf (_.main >>> Just ))
808
+ moduleName = fromMaybe " Test.Main" (testArgs.main <|> testConf (_.main >>> Just ))
807
809
execArgs = fromMaybe [] (testArgs.execArgs <|> testConf _.exec_args)
808
810
in
809
811
{ moduleName
You can’t perform that action at this time.
0 commit comments