android / android/testing-samples
Sample request: Provider test
- Dominant language
- Java
- Stars
- 9.3k
- Forks
- 3.6k
- PR merge metrics
- No merged PRs in 30d
Description
I'd be interested in seeing a sample of how provider testing should be done without ProviderTestCase2. I'm currently using it, and the deprecated RenamingDelegatingContext for cases where I want to make sure tests are only working with test files, and it works fine, however ProviderTestCase2 relies on the deprecated AndroidTestCase and internally uses the deprecated classes IsolatedContext and RenamingDelegatingContext - so it feels like ProviderTestCase2 is a deprecation candidate.
Contributor guide
Research direction
Start by reviewing ProviderTestCase2 and its use of AndroidTestCase, IsolatedContext, and RenamingDelegatingContext. Define a sample showing provider testing without those deprecated classes; done means the sample demonstrates isolated test-file access with current testing APIs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile, testing
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100