Skip to content

Commit

Permalink
Merge pull request #348 from usefulness/updates
Browse files Browse the repository at this point in the history
Respect RMS tolerance
  • Loading branch information
mateuszkwiecinski authored Oct 9, 2024
2 parents 1376fc4 + 17ead15 commit b54775a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 26 deletions.
14 changes: 0 additions & 14 deletions sample/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,6 @@ pluginManagement {
}
}

plugins {
id("com.gradle.develocity") version "3.18.1"
}

develocity {
buildScan {
termsOfUseUrl = "https://gradle.com/terms-of-service"
termsOfUseAgree = "yes"

uploadInBackground = System.getenv("CI") == null
publishing { onlyIf { System.getenv("CI") != null } }
}
}

rootProject.name = "io.github.usefulness.testing.screenshot.sample"

include "android"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,12 @@ internal class Recorder(
}

is ComparisonMethod.RootMeanSquareErrorValue -> { existing, incoming ->
existing.getRootMeetSquare(incoming)
val rms = existing.getRootMeetSquare(incoming)
if (rms > comparisonMethod.tolerance) {
rms
} else {
0
}
}
}

Expand Down
11 changes: 0 additions & 11 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,6 @@ pluginManagement {

plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
id("com.gradle.develocity") version "3.18.1"
}

develocity {
buildScan {
termsOfUseUrl = "https://gradle.com/terms-of-service"
termsOfUseAgree = "yes"

uploadInBackground = System.getenv("CI") == null
publishing { onlyIf { false } }
}
}

dependencyResolutionManagement {
Expand Down

0 comments on commit b54775a

Please sign in to comment.