Function uniffi::testing::run_foreign_language_testcase[][src]

pub fn run_foreign_language_testcase(
    pkg_dir: &str,
    udl_file: &str,
    test_file: &str
) -> Result<()>

Execute the given foreign-language script as part of a rust test suite.

This function takes the top-level directory of a uniffi component crate, and the path to a foreign-language test file that exercises that component's bindings. It ensures that the component is compiled and available for use and then executes the foreign language script, returning successfully iff the script exits successfully.