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

remove unit tests which describe exactly what the code describes #122

Merged
merged 1 commit into from
Feb 6, 2015

Conversation

reset
Copy link
Contributor

@reset reset commented Feb 6, 2015

@johnbellone not sure who had written these, but I've seen a lot of this since test-kitchen started picking up speed. It doesn't help that the very first example of test-kitchen (back at the 2nd annual community summit) was for installing a Redis instance using one of these types of tests. We need to advocate for functional tests for recipes and not unit tests. They are absolutely and completely useless.

Unit tests for recipes are just code duplication which makes things more difficult to maintain while completely missing the point of testing functionality. Recipes aren't a unit of code, they are a set of instructions which build a feature. They can only be properly tested by a functional test. We should avoid merging these types of tests into our codebase.

The LWRP unit tests are marginally useful so I've left them. They could just as easily be tested by a functional test as well (and they should).

reset added a commit that referenced this pull request Feb 6, 2015
remove unit tests which describe exactly what the code describes
@reset reset merged commit 651030c into master Feb 6, 2015
@reset reset deleted the remove-useless-tests branch February 6, 2015 00:20
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling ed9cb74 on remove-useless-tests into e332fc9 on master.

@lock
Copy link

lock bot commented Apr 25, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Apr 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants