Skip to content

Commit

Permalink
TECH: Fix code gen test (#692)
Browse files Browse the repository at this point in the history
* TECH: Fix code gen test
  • Loading branch information
Nikitae57 authored Dec 24, 2024
1 parent d4a6840 commit 2e75ace
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ internal class FlakySafeInterceptorScalpel(
private val entriesCount = AtomicInteger()

fun scalpFromLibs() {
if (entriesCount.getAndIncrement() == 0) {scalpelSwitcher.attemptTakeScalp(
if (entriesCount.getAndIncrement() == 0) { scalpelSwitcher.attemptTakeScalp(
actionToDetermineScalp = { determineScalpExistingInKaspresso() },
actionToTakeScalp = {
scalpKakaoInterceptors()
scalpKautomatorInterceptors()
kaspresso.externalFlakySafetyScalperNotifier.scalpFlakySafety()
}
)}
) }
}

private fun determineScalpExistingInKaspresso() =
Expand Down
4 changes: 2 additions & 2 deletions page-object-code-gen/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ tasks.withType<Jar>() {
}
exclude("NOTICE.txt")
exclude("LICENSE.txt")
doLast{
copy{
doLast {
copy {
from("$buildDir/libs/page-object-code-gen.jar")
into("$rootDir/artifacts")
duplicatesStrategy = DuplicatesStrategy.INCLUDE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class CodeGenTest(

@Test
fun checkCodeGen() {
val jarFile = File("build/libs/page-object-code-gen.jar")
val jarFile = File("../artifacts/page-object-code-gen.jar")
val inputFile = File("src/test/resources/$inputPath")
Runtime.getRuntime().exec("java -jar $jarFile $inputFile $className $outputDirectory")
Thread.sleep(15000)
Expand Down

0 comments on commit 2e75ace

Please sign in to comment.