Skip to content

Meining89/ECE444-F2023-Lab5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

ECE444-F2023-Lab5

Unit Test

Test Cases:

  1. https://github.com/ECE444-2023Fall/project-1-web-application-design-group7-jemagas/blob/d81e1dfbf8fb7fb9103ba865280cb323726f12ff/backend/tests/registration_model_test.py#L37Links to an external site.

  2. https://github.com/ECE444-2023Fall/project-1-web-application-design-group7-jemagas/blob/d81e1dfbf8fb7fb9103ba865280cb323726f12ff/backend/tests/registration_model_test.py#L44Links to an external site.

TDD Pros and Cons

Pros: TDD will improve code quality. It asks developers to think about the problem and edge cases before implementing codes. So that the code will be accurate and comprehensive. It also helps to avoid common coding mistakes and ensures that the code fulfills its intended purpose. This will also allow developers to figure out and fix bugs and errors at an early stage. Furthermore, because TDD is usually in unit test format, it will also encourage developers to write code that is small, concise and focuses on one functionality which lead to a good software design.

Cons: It is complex to write tests, especially for complex functionalities. Writing tests requires a deep understanding of the problem and edge cases. Developers must spend a lot of time understanding the problem and environment before writing actual codes to solve the problem. Furthermore, as more codes are added, the tests must evolve with it. Developers need to update tests to reflect changes in the code's functionality. This will make the codebase larger and larger with the development of projects which might be a disadvantage for resource-limited projects.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published