View Source PactElixir.Dsl (PactElixir v0.5.2-rc.8)
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.
Specs
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"
Specs
shut_down_mock_server(pid()) :: :ok | :error
Specs
verify_interactions(pid()) :: :ok