PactElixir v0.5.2 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”
mock_server_matched?(provider)
deprecated
mock_server_mismatches(provider)
deprecated
shut_down_mock_server(provider_pid)
deprecated
verify_interactions(provider_pid)
deprecated
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”
This function is deprecated. Should only be used internally.
This function is deprecated. Should only be used internally.
Link to this function
shut_down_mock_server(provider_pid)
View Source
shut_down_mock_server(pid()) :: :ok | :error
This function is deprecated. Should only be used internally.
Link to this function
verify_interactions(provider_pid)
View Source
verify_interactions(pid()) :: :ok
This function is deprecated. Should only be used internally.