android / android/testing-samples
Sample request: Provider test
- Ngôn ngữ chính
- Java
- Star
- 9.3k
- Fork
- 3.6k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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.
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng việc xem xét ProviderTestCase2 và cách nó sử dụng AndroidTestCase, IsolatedContext và RenamingDelegatingContext. Xây dựng một ví dụ cho thấy cách kiểm thử provider mà không cần các lớp đã lỗi thời này; được xem là hoàn thành khi ví dụ đó minh họa việc truy cập tệp kiểm thử bị cô lập bằng các API kiểm thử hiện tại.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- android, java
- Lĩnh vực
- mobile, testing
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100