Some checks failed
CI - Multi-Platform Native / Build iOS (RSSuper) (push) Has been cancelled
CI - Multi-Platform Native / Build macOS (push) Has been cancelled
CI - Multi-Platform Native / Build Android (push) Has been cancelled
CI - Multi-Platform Native / Build Linux (push) Has been cancelled
CI - Multi-Platform Native / Build Summary (push) Has been cancelled
880 B
880 B
37. Write unit tests for Android business logic
meta: id: native-business-logic-migration-37 feature: native-business-logic-migration priority: P1 depends_on: [native-business-logic-migration-34] tags: [testing, android]
objective:
- Write comprehensive unit tests for Android business logic
deliverables:
- FeedParserTest.kt
- FeedFetcherTest.kt
- DatabaseTest.kt
- RepositoryTest.kt
- ViewModelTest.kt
- BackgroundSyncTest.kt
- SearchServiceTest.kt
- NotificationServiceTest.kt
tests:
- Unit: All test files compile
- Unit: All tests pass
- Coverage: >80% code coverage
acceptance_criteria:
- All business logic covered
- Edge cases tested
- Error cases tested
- Performance tests included
-
80% code coverage
validation:
- Run
./gradlew test - Check coverage report with Jacoco
notes:
- Use JUnit 5
- Use MockK for mocking
- Use Coroutines Test for async