tree: c06a2a4e10eab0a30ebcfb9c0350de5ff83d2335 [path history] [tgz]
  1. meta/
  2. src/
  3. test_data/
  4. tests/
  5. BUILD.gn
  6. create_raw_processes.shard.cml
  7. default.shard.cml
  8. next-vdso.shard.cml
  9. README.md
src/sys/test_runners/rust/README.md

Rust Test Runner

Reviewed on: 2020-04-20

Rust test runner is a test runner that launches a rust test binary as a component, parses its output, and translates it to the fuchsia.test.Suite protocol on behalf of the test.

Building

fx set core.x64 --with //src/sys/test_runners/rust
fx build

Examples

Examples to demonstrate how to write v2 test:

To run this example:

fx test rust-test-runner-example

Concurrency

Test cases are executed concurrently (max 10 test cases at a time by default). Instruction to override.

Arguments

See passing arguments to learn more.

Limitations

No known current limitations.

Testing

Run:

fx test rust-test-runner-unit-test

fx test rust-runner-integration-test

Source layout

The entrypoint is located in src/main.rs, the FIDL service implementation and all the test logic exists in src/test_server.rs. Unit tests are co-located with the implementation. Integration tests are located in tests folder.