Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TECH: Fix code gen test #692

Merged
merged 2 commits into from
Dec 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading