mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 01:12:56 +03:00
Add --dry-run switch to graphql-engine:test:tests-dc-api [GDW-338]
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5847 GitOrigin-RevId: 97011a617f0a305109f6f8d29293a4898e0bac10
This commit is contained in:
parent
ee995aacc1
commit
2ef11a4766
@ -36,7 +36,8 @@ data TestOptions = TestOptions
|
||||
_toAgentCapabilities :: AgentCapabilities,
|
||||
_toParallelDegree :: Maybe Int,
|
||||
_toMatch :: Maybe String,
|
||||
_toSkip :: Maybe String
|
||||
_toSkip :: Maybe String,
|
||||
_toDryRun :: Bool
|
||||
}
|
||||
|
||||
data AgentCapabilities
|
||||
@ -135,6 +136,10 @@ testOptionsParser =
|
||||
<> help "Skip tests that match given PATTERN"
|
||||
)
|
||||
)
|
||||
<*> switch
|
||||
( long "dry-run"
|
||||
<> help "Skip execution of test bodies"
|
||||
)
|
||||
|
||||
testCommandParser :: Parser Command
|
||||
testCommandParser = Test <$> testOptionsParser
|
||||
|
@ -69,5 +69,6 @@ applyTestConfig config TestOptions {..} =
|
||||
config
|
||||
{ configConcurrentJobs = _toParallelDegree,
|
||||
configFilterPredicate = filterPredicate <$> _toMatch,
|
||||
configSkipPredicate = filterPredicate <$> _toSkip
|
||||
configSkipPredicate = filterPredicate <$> _toSkip,
|
||||
configDryRun = _toDryRun
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user