Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
plain Erlang Test Spy
Erlang
tree: e89503674f

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Readme.md
nspy.erl

Readme.md

What

Processes which record all messages they receive

Why

For asserting a process under test called another process in a particular way, currently only exact message matches supported.

How

nspy:assert_message_received(Spy, Expected)

is a helper (function) which will handle messaging the Spy process and receiving the list of messages, then scan the list of messages for the one you want to find.

On failure eunit will print out your stdout, which contains the spy's expected message and actual received message list.

Born of necessity (since there is no RSpec for Erlang), contributions and criticisms welcome.

Something went wrong with that request. Please try again.