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

Lack of tests #16

Closed
ccoVeille opened this issue May 2, 2024 · 6 comments · Fixed by #23
Closed

Lack of tests #16

ccoVeille opened this issue May 2, 2024 · 6 comments · Fixed by #23
Assignees

Comments

@ccoVeille
Copy link
Contributor

Hi @theredditbandit

I see a major issue with your tool. Its maintenance.

The code is not tested.

While your tool is great, it can't be maintained easily. Anyone contributing to your tool via PR may break something and it won't be noticed until merged by someone else.

@theredditbandit
Copy link
Owner

Hi , thanks for raising this issue.

You're absolutely right , having a robust test suite is crucial for maintainability especially as more contributors get involved.

When I was initially writing this tool , I only ever saw myself using this and I didn't feel like investing the time and effort to write tests and have proper coverage.

I will be adding tests sometime in the future but I'm not familiar with testing in go so it will take a while.
In the meantime if you want to add tests yourself via a PR , I'd be more than happy to review and merge them.

@ccoVeille
Copy link
Contributor Author

Sure.

Just for you to get used to my sense of humor. Your message sounds somehow like "I know my room is a mess, but you can help me to tidy up, sure" 😅😂

@ccoVeille
Copy link
Contributor Author

Hi , thanks for raising this issue.

You're absolutely right , having a robust test suite is crucial for maintainability especially as more contributors get involved.

When I was initially writing this tool , I only ever saw myself using this and I didn't feel like investing the time and effort to write tests and have proper coverage.

I will be adding tests sometime in the future but I'm not familiar with testing in go so it will take a while.
In the meantime if you want to add tests yourself via a PR , I'd be more than happy to review and merge them.

A more serious reply now. Tests are important for detecting regressions. Using tests also forces you to write code that can be tested, which lead to empower yourself in writing better code.

@theredditbandit
Copy link
Owner

Sure.

Just for you to get used to my sense of humor. Your message sounds somehow like "I know my room is a mess, but you can help me to tidy up, sure" 😅😂

haha yeah and thank you 😂

@yannick2009
Copy link
Contributor

lemme try to add these tests !

@theredditbandit theredditbandit linked a pull request May 11, 2024 that will close this issue
@ccoVeille
Copy link
Contributor Author

Thanks @yannick2009 you did it, and you did it in the middle of me adding CI, so you had to fix more that you were initially supposed to

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 a pull request may close this issue.

3 participants