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

Test improvement: removed resource optimism (test smell) #88

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gvma
Copy link

@gvma gvma commented Aug 1, 2020

This is a test refactoring.

The resource optimism occurs when a test method makes an optimistic assumption that the external resource (e.g., file), utilized by the test method, exists.

As this test presumes the existence of multiple files with content to be tested for, It is necessary to ensure those files exists and has content before proceeding with the test steps.

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