Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Converting unit tests to a canonical form — work in progress #5

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

wadcom
Copy link

@wadcom wadcom commented Feb 11, 2014

No description provided.

Factored out the first check from all_test_/0. That tests that startup
parameters passed to mcd_cluster:start_link/2 are honored. Therefore:

 • Made the test explicit; it is now a separate tests.

 • Nonessential details (such as result of the start/stop calls) are not
 checked, since if they fail the test will fail anyways.

 • Factored out mcd_node/1 to hide nonessential details (how the node is
 specified). All we test is that the node id is visible after startup,
 so it's left there.
Factored out the first check from all_test_/0. It tests that startup
parameters passed to mcd_cluster:start_link/2 are honored. Therefore:

 • Made the check explicit; it is now a separate tests.

 • Nonessential details (such as result of the start/stop calls) are not
 checked, since if they fail the test will fail anyways.

 • Factored out mcd_node/1 to hide nonessential details (how the node is
 specified). All we test is that the node id is visible after startup,
 so it's left there.
check_using_startup_args_test -> using_startup_args_test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant