tree: 04a0845a0e3862809717affbca99bdd6c00873b6 [path history] [tgz]
  1. blobfs-ramdisk/
  2. fake-omaha-client/
  3. invalid-fars/
  4. isolated-ota-env/
  5. mock-boot-arguments/
  6. mock-crash-reporter/
  7. mock-installer/
  8. mock-metrics/
  9. mock-omaha-server/
  10. mock-paver/
  11. mock-reboot/
  12. mock-resolver/
  13. mock-space/
  14. mock-verifier/
  15. shell-process/
  16. BUILD.gn
  17. README.md
src/sys/pkg/testing/README.md

//src/sys/pkg/testing

Helper libraries for testing packaging components. Mostly useful for writing integration tests which test fidl protocols.

For the integration tests themselves, see //src/sys/pkg/tests.

Tips for integration testing

  • When writing mocks for fidl protocols, avoid asserting that responders can send the response without error. This is important to prevent integration tests from flaking. Otherwise, if the integration test env is torn down before a request completes, the mock can panic when trying to respond through a closed channel, which would produce a flake.