| # Driver unit testing quick start |
| |
| Important: This page is a work in progress. |
| Additional documentation will be published by November 9, 2023. |
| |
| ## Include library dependencies |
| |
| ## Provide handler to add server bindings |
| |
| ## Set up testing framework |
| |
| ### Create driver runtime |
| |
| ### Start background dispatcher(s) |
| |
| ### Create `TestNode` object |
| |
| ### Create `TestEnvironment` object |
| |
| ### Create custom FIDL server |
| |
| ### Get custom FIDl server handler |
| |
| ### Move custom FIDL server handler |
| |
| ### Call `CreateStartArgsAndServe` |
| |
| ### Initial test environment |
| |
| ## Run tests |
| |
| ### Add the driver under test |
| |
| ### Start driver |
| |
| ### Add tests |
| |
| ### Call `PrepareStop` |
| |
| ### Run tests |