Skip to content

Commit 2e75ace

Browse files
authoredDec 24, 2024
TECH: Fix code gen test (#692)
* TECH: Fix code gen test
1 parent d4a6840 commit 2e75ace

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed
 

‎kaspresso/src/main/kotlin/com/kaspersky/kaspresso/flakysafety/scalpel/FlakySafeInterceptorScalpel.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ internal class FlakySafeInterceptorScalpel(
2525
private val entriesCount = AtomicInteger()
2626

2727
fun scalpFromLibs() {
28-
if (entriesCount.getAndIncrement() == 0) {scalpelSwitcher.attemptTakeScalp(
28+
if (entriesCount.getAndIncrement() == 0) { scalpelSwitcher.attemptTakeScalp(
2929
actionToDetermineScalp = { determineScalpExistingInKaspresso() },
3030
actionToTakeScalp = {
3131
scalpKakaoInterceptors()
3232
scalpKautomatorInterceptors()
3333
kaspresso.externalFlakySafetyScalperNotifier.scalpFlakySafety()
3434
}
35-
)}
35+
) }
3636
}
3737

3838
private fun determineScalpExistingInKaspresso() =

‎page-object-code-gen/build.gradle.kts

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ tasks.withType<Jar>() {
2626
}
2727
exclude("NOTICE.txt")
2828
exclude("LICENSE.txt")
29-
doLast{
30-
copy{
29+
doLast {
30+
copy {
3131
from("$buildDir/libs/page-object-code-gen.jar")
3232
into("$rootDir/artifacts")
3333
duplicatesStrategy = DuplicatesStrategy.INCLUDE

‎page-object-code-gen/src/test/java/com/kaspresso/components/pageobjectcodegen/CodeGenTest.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class CodeGenTest(
1717

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

0 commit comments

Comments
 (0)