pact (pact_erlang v0.3.1)
View SourceSummary
Functions
Stops pact server
Asserts that each key of Value should match the given regular expression
Asserts the Term is an array type that consists of elements Like the one passed in
Enables pact ffi logs
Enables pact ffi logs
Creates a mock server with the given interaction details Returns its port for running pact consumer tests
Matches all the child objects (and their child objects etc.) Matched according to their types
Creates a test message with the given interaction details Returns message data for running message consumer tests
Asserts the value should match the given regular expression
Starts a new pact server and returns its pid Returns old instance's pid in case cleanup was not done correctly
Verifies Writes pact file and also finally cleanups
writes pact to the default directory path ./pacts
writes pact to the given directory path
Types
Functions
-spec cleanup(pact_pid()) -> ok.
Stops pact server
Asserts that each key of Value should match the given regular expression
Asserts the Term is an array type that consists of elements Like the one passed in
-spec enable_logging(atom()) -> ok.
Enables pact ffi logs
Enables pact ffi logs
-spec interaction(pact_pid(), pact_interaction_details()) -> {ok, pact_mock_server_port()}.
Creates a mock server with the given interaction details Returns its port for running pact consumer tests
Matches all the child objects (and their child objects etc.) Matched according to their types
-spec msg_interaction(pact_pid(), pact_interaction_details()) -> pact_message_data().
Creates a test message with the given interaction details Returns message data for running message consumer tests
Asserts the value should match the given regular expression
Starts a new pact server and returns its pid Returns old instance's pid in case cleanup was not done correctly
-spec verify(pact_pid()) -> {ok, matched} | {error, not_matched}.
Verifies Writes pact file and also finally cleanups
-spec write(pact_pid()) -> ok.
writes pact to the default directory path ./pacts
writes pact to the given directory path