PactElixir v0.5.0 PactElixir.Dsl View Source
This module can be imported to create and start a mock server with the usual Pact DSL.
Link to this section Summary
Functions
Adds an interaction to the pact
Verifies interactions and shuts the mock server down. To be called after test suite run in main application, eg. in an on_exit callback: on_exit(fn -> after_test_suite(provider) end)
Returns URL of the mock server host, eg. “http://localhost:54321”
Link to this section Functions
Adds an interaction to the pact.
Verifies interactions and shuts the mock server down. To be called after test suite run in main application, eg. in an on_exit callback: on_exit(fn -> after_test_suite(provider) end)
Returns URL of the mock server host, eg. “http://localhost:54321”
Link to this function
shut_down_mock_server(provider_pid)
View Source
shut_down_mock_server(pid()) :: :ok | :error
Link to this function
verify_interactions(provider_pid)
View Source
verify_interactions(pid()) :: :ok