Skip to main content

serve_and_open

Function serve_and_open 

Source
pub async fn serve_and_open(
    profile_json: Vec<u8>,
    test_name: &str,
    contract_name: &str,
) -> Result<()>
Expand description

Serves a profile on a local HTTP server and opens it in the browser.

Takes the already-serialized profile JSON bytes. The server runs until Ctrl+C is pressed.