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

Authentication Code Does Not Have Tests #37

Open
WilliamFernsV3 opened this issue Jan 29, 2025 · 0 comments
Open

Authentication Code Does Not Have Tests #37

WilliamFernsV3 opened this issue Jan 29, 2025 · 0 comments
Assignees

Comments

@WilliamFernsV3
Copy link
Collaborator

Description:

Authentication service, endpoint and all dependencies are untested. In fact, no code in the codebase have tests written! This is bad, because this means a developer must manually test code each time, which is inefficient and not accurate. Tests improve the robustness of the code. When writing tests, it allows you to improve the code so that it is more sustainable, less bug prone, easier to debug and to read.

Solution

Read through "Clean Code Collection" by Uncle Bob. Implement those concepts into cleaning up the codebase code. Read up or follow a course on testing (not just unit testing, testing in its entirety), and use that concepts to write tests. Look at tests written in repositories like Vapor and ask brother if he can give me some code and test examples in its entirety as reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant