This repository has been archived by the owner on Apr 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix update view padding and size * Check for updates only once * Lint * Set current version before integration tests * Improve build time * Lint Co-authored-by: andrea-vinci <[email protected]>
- Loading branch information
1 parent
8455324
commit 5104ce1
Showing
8 changed files
with
56 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
org.gradle.parallel=true | ||
org.gradle.jvmargs=-Xmx4096m -XX:MaxMetaspaceSize=512m | ||
org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=512m | ||
org.gradle.caching=true | ||
kotlin.incremental=true |
28 changes: 28 additions & 0 deletions
28
src/integrationTest/kotlin/insulator/integrationtest/helper/KotestConfig.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package insulator.integrationtest.helper | ||
|
||
import insulator.di.CONFIG_FILE_NAME | ||
import io.kotest.core.config.AbstractProjectConfig | ||
import io.kotest.core.test.TestCaseOrder | ||
import java.net.URLDecoder | ||
import java.nio.file.Paths | ||
|
||
object KotestConfig : AbstractProjectConfig() { | ||
|
||
override val parallelism = 1 | ||
override val testCaseOrder = TestCaseOrder.Random | ||
|
||
override fun beforeAll() { | ||
mockCurrentAppVersion("999.999.999") | ||
super.beforeAll() | ||
} | ||
|
||
fun mockCurrentAppVersion(version: String) { | ||
val jarPath = Paths.get(this::class.java.protectionDomain.codeSource.location.toURI()).toString() | ||
val jarFolder = Paths.get(URLDecoder.decode(jarPath, "UTF-8")).parent.toAbsolutePath().toString() | ||
val configPath = | ||
with(Paths.get(jarFolder, CONFIG_FILE_NAME).toAbsolutePath().toFile()) { | ||
createNewFile() | ||
writeText("app.version=$version") | ||
} | ||
} | ||
} |
3 changes: 0 additions & 3 deletions
3
src/integrationTest/kotlin/insulator/integrationtest/helper/TestHelpers.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package helper | ||
|
||
import io.kotest.core.config.AbstractProjectConfig | ||
import io.kotest.core.test.TestCaseOrder | ||
|
||
object KotestConfig : AbstractProjectConfig() { | ||
override val parallelism = 1 | ||
override val testCaseOrder = TestCaseOrder.Random | ||
} |