项目
在 GitHub 查看
mitchtabian/EspressoUITest-Examples
关于
Examples of UI Testing with Espresso, Mockk, androidx.test
学习与教育实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
UI Testing for Beginners
Watch the video course here (FREE): UI Testing for Beginners
Espresso Samples:
Activities in Isolation
- ActivityScenario vs ActivityScenarioRule
- Matching with text in view
Activity Navigation
- Basic activity navigation testing
Test Suites
- Creating test suites to run multiple test classes at once
Fragments in Isolation (simple)
- Simple use case testing the fragments and their behavior with no dependencies
Fragments in Isolation (with Mockk & FragmentFactory Dependencies)
- Testing kotlin final classes (making them open for testing)
- More complex tests and why dependency injection is recommended
- Providing dependencies with a FragmentFactory
Fragments Navigation
- Ensuring correct fragment is in view after any particular action is taken.
Intents (image from gallery)
- Selecting an image from android device gallery and confirming the correct one is received by onActivityResult
- IntentsTestRule
- Custom Image Matcher
Intents (image from camera)
- Taking a new image with camera and confirming the correct one is received by onActivityResult
- IntentsTestRule
- Custom Image Matcher
Dialog (detecting if visible)
- Material Dialogs
- Showing a dialog and confirming it is in view
- Dismissing a dialog and confirming it is out of view
Dialog (capture input)
- Material Dialogs
- Capturing input from dialog and passing to fragment
Toasts (custom Toast Matcher)
- Confirming a toast is showing using a Custom Toast Matcher
RecyclerView
- Confirming correct data in RecyclerView
- Clicking list items
- Navigating to different fragments when list item is clicked
- Back navigation testing
探索相关项目
加载中…