Skip to content

Commit

Permalink
Update description of --timeout cli arg for Specmatic test command to…
Browse files Browse the repository at this point in the history
… include unit of time
  • Loading branch information
harikrishnan83 committed Jun 7, 2024
1 parent f6ec594 commit dfc6254
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/src/main/kotlin/application/TestCommand.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package application
import application.test.ContractExecutionListener
import `in`.specmatic.core.APPLICATION_NAME_LOWER_CASE
import `in`.specmatic.core.Configuration
import `in`.specmatic.core.DEFAULT_TIMEOUT_IN_SECONDS
import `in`.specmatic.core.Flags
import `in`.specmatic.core.log.Verbose
import `in`.specmatic.core.log.logger
Expand Down Expand Up @@ -85,7 +86,7 @@ class TestCommand : Callable<Unit> {
@Option(names = ["--https"], description = ["Use https instead of the default http"], required = false)
var useHttps: Boolean = false

@Option(names = ["--timeout"], description = ["Specify a timeout for the test requests"], required = false, defaultValue = "60")
@Option(names = ["--timeout"], description = ["Specify a timeout in seconds for the test requests. Default value is $DEFAULT_TIMEOUT_IN_SECONDS"], required = false, defaultValue = DEFAULT_TIMEOUT_IN_SECONDS)
var timeout: Int = 60

@Option(names = ["--junitReportDir"], description = ["Create junit xml reports in this directory"])
Expand Down
1 change: 1 addition & 0 deletions core/src/main/kotlin/in/specmatic/core/SpecmaticConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import java.io.File
const val APPLICATION_NAME = "Specmatic"
const val APPLICATION_NAME_LOWER_CASE = "specmatic"
const val APPLICATION_NAME_LOWER_CASE_LEGACY = "qontract"
const val DEFAULT_TIMEOUT_IN_SECONDS = "60"
const val CONTRACT_EXTENSION = "spec"
const val LEGACY_CONTRACT_EXTENSION = "qontract"
const val YAML = "yaml"
Expand Down

0 comments on commit dfc6254

Please sign in to comment.