Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/get_configuration_dynamically' i…
Browse files Browse the repository at this point in the history
…nto get_configuration_dynamically

# Conflicts:
#	src/main/kotlin/com/featurevisor/testRunner/TestExecuter.kt
#	src/main/kotlin/com/featurevisor/testRunner/TestSegment.kt
  • Loading branch information
Tan108 committed Aug 5, 2024
2 parents 9116ace + b96d9a5 commit a9da128
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions src/main/kotlin/com/featurevisor/testRunner/TestExecuter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ fun startTest(option: TestProjectOption) {
continue
}

if (executionResult.passed) {
passedTestsCount++
} else {
hasError = true
failedTestsCount++
}
if (executionResult.passed) {
passedTestsCount++
} else {
hasError = true
failedTestsCount++
}

passedAssertionsCount += executionResult.assertionsCount.passed
failedAssertionsCount += executionResult.assertionsCount.failed
Expand Down
4 changes: 2 additions & 2 deletions src/main/kotlin/com/featurevisor/testRunner/TestSegment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ fun testSegment(testSegment: TestSegment,configuration: Configuration,option: Te
}

val yamlSegment = parseYamlSegment("${configuration.segmentsDirectoryPath}/$segmentKey.yml")
val expected = assertion.expectedToMatch
val actual = segmentIsMatched(yamlSegment!!, assertion.context)
val expected = it.expectedToMatch
val actual = segmentIsMatched(yamlSegment!!, it.context)
val passed = actual == expected

if (!passed) {
Expand Down

0 comments on commit a9da128

Please sign in to comment.