Skip to content

Commit

Permalink
enable all androidTests
Browse files Browse the repository at this point in the history
  • Loading branch information
MilosKozak committed Oct 21, 2023
1 parent 50a6fe5 commit a98eb6f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ jobs:
- android/change-java-version:
java-version: 17

#- android/start-emulator-and-run-tests:
#system-image: system-images;android-29;google_apis;x86
- android/start-emulator-and-run-tests:
system-image: system-images;android-29;google_apis;x86
# Compile while the emulator starts to use the time.
#post-emulator-launch-assemble-command: ./gradlew compileFullDebugUnitTestSources database:impl:compileFullDebugAndroidTestSources
#test-command: ./gradlew database:impl:connectedFullDebugAndroidTest
post-emulator-launch-assemble-command: ./gradlew compileFullDebugUnitTestSources compileFullDebugAndroidTestSources
test-command: ./gradlew connectedFullDebugAndroidTest

- android/run-tests:
test-command: ./gradlew testFullDebugUnitTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import androidx.room.Room
import androidx.test.core.app.ApplicationProvider
import androidx.test.ext.junit.runners.AndroidJUnit4
import app.aaps.shared.tests.AAPSLoggerTest
import com.github.guepardoapps.kulid.ULID
import info.nightscout.androidaps.plugins.pump.omnipod.common.definition.OmnipodCommandType
import info.nightscout.androidaps.plugins.pump.omnipod.dash.history.database.DashHistoryDatabase
import info.nightscout.androidaps.plugins.pump.omnipod.dash.history.database.HistoryRecordDao
Expand Down Expand Up @@ -38,9 +39,9 @@ class DashHistoryTest {
assertValue { it.isEmpty() }
}

// dashHistory.createRecord(commandType = OmnipodCommandType.CANCEL_BOLUS, 0L).test().apply {
// assertValue { ULID.isValid(it) }
// }
dashHistory.createRecord(commandType = OmnipodCommandType.CANCEL_BOLUS, 0L).test().apply {
assertValue { it != 0L }
}

dashHistory.getRecords().test().apply {
assertValue { it.size == 1 }
Expand Down

0 comments on commit a98eb6f

Please sign in to comment.