~/talk

Frictionless Android testing: Write once, run everywhere

Talkat Google I/O 2018 · 2018-05-08..05-10· [android, testing]
links:none on file
slides:none on file

Claims a single, canonical API set so tests run on-device, off-device, or in Cloud with no rewrites, and cites billions of existing test invocations. It packages Android JUnit4 Runner, activity test rules, Espresso and Espresso‑Intents, Robolectric support, Truth extensions and Android Test (Jetpack) data builders to reduce boilerplate, and ships a test executor called Project Nitrogen that uses Android Orchestrator and Android JUnit Runner to isolate runs. Robolectric 4.0 is released and Google reports internal use on Gmail, Maps, Photos and YouTube.

AI-written summary · about

  1. 0:00Start
  2. 1:27made up of three layers unit integration and end-to-end tests
  3. 1:59produce a holistic automated testing environment
  4. 4:08break tests down into three clear sections
  5. 4:56use common setup methods only for scaffolding
  6. 5:11highlight this using a simple test case
  7. 6:24stub out some of the android framework behavior in the superclass
  8. 7:03execute your code
  9. 9:56building up your entire apk deploying it to the device
  10. 10:49use the espresso view matcher
  11. 12:36focus on writing your tests rather than considering those tools and libraries
  12. 15:23set up your test environment
  13. 16:28make assertions on the state of the system
  14. 18:34run the test either on device on your local workstation
  15. 19:51start with a simple test for our business logic
  16. 20:06adding an integration test
  17. 21:01refactor this large complicated test refactoring a large test
  18. 22:51run the entire test suite on our continuous integration server
  19. 26:08prepares the device for the next step test execution
  20. 26:36running a unit test on your local workstation
  21. 32:50accelerate your testing experience
  22. 33:46submit your feedback
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.