Skip to main content

set_test_run_id

Function set_test_run_id 

Source
pub fn set_test_run_id(id: Option<String>)
Expand description

Set the test run ID for the current thread. Pass None to clear it.

Should be called by the test framework (pact_consumer, pact_ffi) before any plugin calls, so that the ID is included in testContext of outgoing gRPC requests and can be used to correlate plugin log entries with a specific test.