pub fn build_test_binary<R: AsRef<Path>>(
    name: &str,
    directory: R
) -> Result<OsString, TestBinaryError>
Expand description

Simplified function for building a test binary where the binary is in a subdirectory of the same name, the manifest is named Cargo.toml, and you don’t need any non-default features or to specify a profile.

For example, if your parent contains the child binary in testbins/does-build, and the binary is named does-build in its Cargo.toml, then you can just call build_test_binary("does_build", "testbins").