Adds some specific functionality for Robolectric

This should now be essentially complete to get the Robolectric tests
running in continuous infra.  The only thing that I don't see being
permanent is the classpath override option, but it is so useful for
debugging that it might be worth keeping around long term.

Added unit tests, more to come in the future.

Bug: b/157635117
Test: Unit
Change-Id: Ibf24860b0bcff8969bf4d3999b168228c8b033d8
4 files changed
tree: 809ccc38163a7c41be19e594124963065e18a2b0
  1. atest/
  2. clearcut_client/
  3. common_util/
  4. device_build_interfaces/
  5. global_configuration/
  6. invocation_interfaces/
  7. isolation/
  8. lite/
  9. proto/
  10. python-lib/
  11. remote/
  12. res/
  13. src/
  14. test_framework/
  15. test_result_interfaces/
  16. tests/
  17. util-apps/
  18. .classpath
  19. .gitignore
  20. .project
  21. Android.bp
  22. Android.mk
  23. aosp_sha.sh
  24. atest_tradefed.sh
  25. CleanSpec.mk
  26. error_prone_rules.mk
  27. MANIFEST.mf
  28. OWNERS
  29. PREUPLOAD.cfg
  30. pylintrc
  31. README.md
  32. run_tf_cmd.sh
  33. script_help.sh
  34. TEST_MAPPING
  35. tradefed.sh
  36. tradefed_win.bat
README.md

Trade Federation (TF / Tradefed)

TF is a test harness used to drive Android automated testing. It runs on test hosts and monitors the connected devices, handling test scheduling & execution and device management.

Other test harnesses like Compatibility Test Suite (CTS) and Vendor Test Suite (VTS) use TF as a basis and extend it for their particular needs.

Building TF:

  • source build/envsetup.sh
  • tapas tradefed-all
  • make -j8

Getting Code Reviewed

1. Create your change in Gerrit
2. Add the reviewer named "Tradefed Codereview" (email: tradefed-codereview@tradefederation.google.com.iam.gserviceaccount.com)
3. Review the code review guidance at go/tf-guidelines and go/tradefed-code-reviews
4. GWSQ should add a couple of people from the team to review your code and give feedback.

More information

More information at: https://source.android.com/devices/tech/test_infra/tradefed/

See more details about Tradefed Architecture at: https://source.android.com/devices/tech/test_infra/tradefed/architecture

If you are a tests writer you should start looking in the test_framework/ component which contains everything needed to write a tests in Tradefed.