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

Guidance on the location of EUnit tests for a module? #7

Open
stevenproctor opened this issue Sep 12, 2013 · 0 comments
Open

Guidance on the location of EUnit tests for a module? #7

stevenproctor opened this issue Sep 12, 2013 · 0 comments

Comments

@stevenproctor
Copy link
Contributor

When digging in and trying to get an understanding about using EUnit for testing Erlang modules, I have seen examples that use three different locations for where people put there tests:

  • In the same file using the testing macro
  • In a different file in the same directory as the source file they are testing
  • In a different file in a test(s) directory located at the same directory level as src

I don't know if it would be worth it for this book to touch on all of the different ways that they get structured and their pros/cons, or even just to vouch for one and help to standardize a structure.

zkessin added a commit that referenced this issue Sep 16, 2013
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

No branches or pull requests

1 participant