SpriteFrameRepositoryTest.kt
Unresolved reference 'debug' — wrong import, probably importing a debug build config that doesn't exist in test scope
Unresolved reference 'SpriteBox' — SpriteBox was likely renamed or moved and the test wasn't updated
SettingsTest.kt
- Type mismatch — test expects
ConnectionValidationResult but the production code now returns UrlValidationResult. Someone refactored the type and forgot to update the test.
OllamaViewModelTest.kt
FakeModelPreferenceDao doesn't implement getAllBaseUrls — a new method was added to the DAO interface but the fake used in tests wasn't updated
FakeBaseUrlProvider doesn't implement replaceAll — same deal, interface changed and the fake is out of sync
All three are the same root cause: production code changed, tests weren't kept in sync. Nothing wrong with CI or Gradle.
Fix order:
- Update
FakeModelPreferenceDao and FakeBaseUrlProvider to implement the new methods
- Fix the
ConnectionValidationResult → UrlValidationResult mismatch in SettingsTest
- Fix the
SpriteBox import/reference in SpriteFrameRepositoryTest
SpriteFrameRepositoryTest.ktUnresolved reference 'debug'— wrong import, probably importing a debug build config that doesn't exist in test scopeUnresolved reference 'SpriteBox'—SpriteBoxwas likely renamed or moved and the test wasn't updatedSettingsTest.ktConnectionValidationResultbut the production code now returnsUrlValidationResult. Someone refactored the type and forgot to update the test.OllamaViewModelTest.ktFakeModelPreferenceDaodoesn't implementgetAllBaseUrls— a new method was added to the DAO interface but the fake used in tests wasn't updatedFakeBaseUrlProviderdoesn't implementreplaceAll— same deal, interface changed and the fake is out of syncAll three are the same root cause: production code changed, tests weren't kept in sync. Nothing wrong with CI or Gradle.
Fix order:
FakeModelPreferenceDaoandFakeBaseUrlProviderto implement the new methodsConnectionValidationResult→UrlValidationResultmismatch inSettingsTestSpriteBoximport/reference inSpriteFrameRepositoryTest