enable all androidTests
This commit is contained in:
parent
50a6fe524a
commit
a98eb6f233
2 changed files with 8 additions and 7 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
@ -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 }
|
||||
|
|
Loading…
Reference in a new issue