[−][src]Function pact_mock_server::write_pact_file
pub extern "C" fn write_pact_file(
mock_server_port: i32,
directory: Option<String>
) -> Result<(), WritePactFileErr>
Trigger a mock server to write out its pact file. This function should
be called if all the consumer tests have passed. The directory to write the file to is passed
as the second parameter. If None
is passed in, the current working directory is used.
Returns Ok
if the pact file was successfully written. Returns an Err
if the file can
not be written, or there is no mock server running on that port.