Integration tests are written against client-facing FIDL services exposed by Modular. They make use of the Modular Test Harness.
The easiest way to get started is to make a copy of an existing test. Be sure to:
BUILD.gn, add an entry to build the new test
meta/if the new test needs special capabilities
BUILD.gn, create a
fuchsia_unittest_component()with the new
executable()as a dependency
BUILD.gn, add the new
Run the following commands to build your tests:
fx set core.x64 --with //src/modular/tests fx build
NOTE: You only need to run
fx set once.
fx test modular_integration_tests
Add the following to the above command: