Skip to content

Commit

Permalink
feat: Added printing missing options (#1214)
Browse files Browse the repository at this point in the history
* feat: Added printing missing options

* feat: Added printing missing options

* Remove carriage line

Co-authored-by: Michael Wright <[email protected]>
  • Loading branch information
piotradamczyk5 and Sloox authored Oct 6, 2020
1 parent c6bc9fb commit 762e76d
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 3 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,11 @@ flank:
## Default: 120.0
# default-test-time: 15

## Set default test time (in seconds) used for calculating shards of parametrized classes when previous tests results are not available.
## Default test time for classes should be different from the default time for test
## Default: 240.0
# default-class-test-time: 30

## Disables sharding. Useful for parameterized tests.
# disable-sharding: false

Expand Down Expand Up @@ -400,6 +405,11 @@ flank:
## Default: 120.0
# default-test-time: 15

## Set default test time (in seconds) used for calculating shards of parametrized classes when previous tests results are not available.
## Default test time for classes should be different from the default time for test
## Default: 240.0
# default-class-test-time: 30

## Disables sharding. Useful for parameterized tests.
# disable-sharding: false

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class UpdateGradleTest {

@Test
fun `Should update RC version gradle`() {
val rcReportText = testReport.readText().replace(
val rcReportText = testReport.readText().replace("\r\n", "\n").replace(
"""
| "releaseCandidate": {
| "version": "6.7-rc-1",
Expand Down
7 changes: 6 additions & 1 deletion test_runner/flank.ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,12 @@ flank:
## Default: 120.0
# default-test-time: 15

## Disables sharding. Useful for parameterized tests.
## Set default test time (in seconds) used for calculating shards of parametrized classes when previous tests results are not available.
## Default test time for classes should be different from the default time for test
## Default: 240.0
# default-class-test-time: 30

## Disables sharding. Useful for parameterized tests.
# disable-sharding: false

## always run - these tests are inserted at the beginning of every shard
Expand Down
5 changes: 5 additions & 0 deletions test_runner/flank.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,11 @@ flank:
## Default: 120.0
# default-test-time: 15

## Set default test time (in seconds) used for calculating shards of parametrized classes when previous tests results are not available.
## Default test time for classes should be different from the default time for test
## Default: 240.0
# default-class-test-time: 30

## Disables sharding. Useful for parameterized tests.
# disable-sharding: false

Expand Down
4 changes: 3 additions & 1 deletion test_runner/src/main/kotlin/ftl/args/AndroidArgs.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ data class AndroidArgs(
val useOrchestrator: Boolean,
val roboDirectives: List<FlankRoboDirective>,
val roboScript: String?,
val environmentVariables: Map<String, String>,
val environmentVariables: Map<String, String>, // should not be printed, becuase could contains sensitive informations
val directoriesToPull: List<String>,
val otherFiles: Map<String, String>,
val performanceMetrics: Boolean,
Expand Down Expand Up @@ -73,6 +73,8 @@ AndroidArgs
legacy-junit-result: $useLegacyJUnitResult
ignore-failed-tests: $ignoreFailedTests
output-style: ${outputStyle.name.toLowerCase()}
disable-results-upload: $disableResultsUpload
default-class-test-time: $defaultClassTestTime
""".trimIndent()
}
}
Expand Down
2 changes: 2 additions & 0 deletions test_runner/src/main/kotlin/ftl/args/IosArgs.kt
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ IosArgs
run-timeout: $runTimeout
ignore-failed-tests: $ignoreFailedTests
output-style: ${outputStyle.name.toLowerCase()}
disable-results-upload: $disableResultsUpload
default-class-test-time: $defaultClassTestTime
""".trimIndent()
}
}
Expand Down
6 changes: 6 additions & 0 deletions test_runner/src/test/kotlin/ftl/args/AndroidArgsTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ class AndroidArgsTest {
run-timeout: 20m
ignore-failed-tests: true
output-style: single
disable-results-upload: true
default-class-test-time: 30.0
"""

@After
Expand Down Expand Up @@ -357,6 +359,8 @@ AndroidArgs
legacy-junit-result: false
ignore-failed-tests: true
output-style: single
disable-results-upload: true
default-class-test-time: 30.0
""".trimIndent()
)
}
Expand Down Expand Up @@ -418,6 +422,8 @@ AndroidArgs
legacy-junit-result: true
ignore-failed-tests: false
output-style: multi
disable-results-upload: false
default-class-test-time: 240.0
""".trimIndent(),
args.toString()
)
Expand Down
6 changes: 6 additions & 0 deletions test_runner/src/test/kotlin/ftl/args/IosArgsTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ class IosArgsTest {
ignore-failed-tests: true
keep-file-path: true
output-style: single
disable-results-upload: true
default-class-test-time: 30.0
"""

@get:Rule
Expand Down Expand Up @@ -251,6 +253,8 @@ IosArgs
run-timeout: 15m
ignore-failed-tests: true
output-style: single
disable-results-upload: true
default-class-test-time: 30.0
""".trimIndent()
)
}
Expand Down Expand Up @@ -301,6 +305,8 @@ IosArgs
run-timeout: -1
ignore-failed-tests: false
output-style: multi
disable-results-upload: false
default-class-test-time: 240.0
""".trimIndent(),
args.toString()
)
Expand Down

0 comments on commit 762e76d

Please sign in to comment.