|
|
@ -435,9 +435,12 @@ Errors can have a significant impact on software systems. They can cause softwar |
|
|
|
|
|
|
|
- Motivation: |
|
|
|
- Quality costs: The cost of fixing bugs increases with the age of the code. |
|
|
|
- Which tests to automate?: Unit tests should be written for all public methods and classes. |
|
|
|
- How to write a good unit test?: A good unit test is independent, repeatable, complete, accurate, and up-to-date. |
|
|
|
- What does "trustworthy" mean?: A trustworthy unit test is reliable and provides reliable results. |
|
|
|
- Which tests to automate? |
|
|
|
- Unit tests should be written for all public methods and classes. |
|
|
|
- How to write a good unit test? |
|
|
|
- A good unit test is independent, repeatable, complete, accurate, and up-to-date. |
|
|
|
- What does "trustworthy" mean? |
|
|
|
- A trustworthy unit test is reliable and provides reliable results. |
|
|
|
- Timely: Unit tests should be written as early as possible to detect bugs early. |
|
|
|
- Conclusion: Unit tests are the most frequently automated tests, and Test-Driven Development (TDD) is the most suitable approach for their creation. |
|
|
|
|
|
|
|