Skip to content

What is the rationale behind avoiding unit testing? #5112

Answered by Darksonn
nguiard asked this question in Q&A
Discussion options

You must be logged in to vote

The meaning that this note takes in practice is that tests should go in the tests/ directory next to the src/ directory, as opposed to having the tests inside the src/ directory.

That's not to say that there are no tests inside src/, but all of the tests in src/ are there because they need something not in the public API, which prevents them from being in tests/. We try to avoid this when possible.

Integration tests are nice because when the test uses only the public API, our stability promise also means that we wont have to change the tests when refactoring.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nguiard
Comment options

Answer selected by nguiard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants