tree: 9997dfd3930b070a6ce463c9333e9c38865aa0ef [path history] [tgz]
  1. BUILD.gn
  2. README.md
  3. intents_test.cc
  4. last_focus_time_test.cc
  5. meta/
  6. module_output_test.cc
  7. session_shell_test.cc
  8. story_shell_factory_test.cc
src/modular/tests/README.md

Integration tests

Integration tests are written against client-facing FIDL services exposed by Modular. They make use of the Modular Test Harness.

Writing a new test

The easiest way to get started is to make a copy of an existing test. Be sure to:

  1. Add an entry in BUILD.gn to build the new test executable()
  2. Create a .cmx meta file in meta/
  3. Add both the executable binary to the test_package() declaration in BUILD.gn

Running tests

Run the following commands to build & run your tests:

fx set core.x64 --with //src/modular/tests
fx build

NOTE: You only need to run fx set once.

Running all tests

fx shell "run-test-component modular_integration_tests"