Skip to content

Commit

Permalink
Merge pull request #101 from qiaoyuang/main
Browse files Browse the repository at this point in the history
Optimize the unit tests
  • Loading branch information
qiaoyuang authored Dec 5, 2024
2 parents cf1f01c + 4523e53 commit 8c5f2e7
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,24 +76,24 @@ jobs:
if: steps.avd-cache.outputs.cache-hit != 'true'
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 34
api-level: 35
target: google_apis
arch: x86_64
profile: pixel_6
emulator-build: 12265550
emulator-build: 12694320
force-avd-creation: false
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
script: echo "Generated AVD snapshot for caching."

- name: Run Android 14 Instrumented Tests
- name: Run Android 15 Instrumented Tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 34
api-level: 35
target: google_apis
arch: x86_64
profile: pixel_6
emulator-build: 12265550
emulator-build: 12694320
force-avd-creation: false
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
Expand Down Expand Up @@ -239,7 +239,7 @@ jobs:
target: default
arch: x86_64
profile: pixel_2
emulator-build: 12265550
emulator-build: 12694320
force-avd-creation: false
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
Expand All @@ -252,7 +252,7 @@ jobs:
target: default
arch: x86_64
profile: pixel_2
emulator-build: 12265550
emulator-build: 12694320
force-avd-creation: false
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

### All

* Update `Kotlin`'s version to `2.1.00`
* Update `Kotlin`'s version to `2.1.0`

### sqllin-dsl

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ import platform.Foundation.NSUserDomainMask
internal actual fun getPlatformStringPath(): String =
(NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, true).firstOrNull() as? String ?: "")

// actual val pathSeparator: Char = '/'
internal actual val pathSeparator: Char = '/'
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ import platform.posix.getcwd
internal actual fun getPlatformStringPath(): String =
getcwd(null, 0u)?.toKString() ?: throw IllegalStateException("The temp path created error")

// actual val pathSeparator: Char = '/'
internal actual val pathSeparator: Char = '/'
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ import platform.posix._wgetcwd
internal actual fun getPlatformStringPath(): String =
_wgetcwd(null, 0)?.toKString() ?: throw IllegalStateException("Get database path wrong")

// actual val pathSeparator: Char = '\\'
internal actual val pathSeparator: Char = '\\'
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ internal expect fun getPlatformStringPath(): String
/**
* Get the file path separator, '\' in Windows, '/' in others
*/
// expect val pathSeparator: Char
internal expect val pathSeparator: Char
4 changes: 2 additions & 2 deletions test_android.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#Run Android instrumented tests
./gradlew :sqllin-driver:connectedDebugAndroidTest --stacktrace
./gradlew :sqllin-dsl:connectedDebugAndroidTest --stacktrace
adb uninstall com.ctrip.sqllin.driver.test
adb uninstall com.ctrip.sqllin.dsl.test
#adb uninstall com.ctrip.sqllin.driver.test
#adb uninstall com.ctrip.sqllin.dsl.test

0 comments on commit 8c5f2e7

Please sign in to comment.