-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Cleanup tests #188
Comments
AtomicThe problem is, that replacing private functions called in a public function can't be replaced. So if we define "atomic" as "call only one public function", then I agree. But if we define "atomic" as "only one function should be called without any further/deeper function calls" or "only 50 locs at once", then I disagree. no file IOIf the out-interface of the function under test is only/includes file IO, then I would say that file IO is okay. In the case of |
Atomic Only one public function was what I meant. IO Then file IO is still supposedly separate, unless it is really vital to the test itself. |
The modified tests of pull request #193 are atomic and file IO is used at a minimum. The tests need file IO because the input and output of the tested function includes file IO. The paths to the files are constructed to work on any build or test system. |
If someone has further suggestions which tests can be created or how the assertion parts should look like, tell it to me. |
Tests should be atomic and optimally do no file IO.
The text was updated successfully, but these errors were encountered: