Tags | tdd skill/tdd |
Hard Prerequisites | |
IMPORTANT: Please review these prerequisites, they include important information that will help you with this content. | |
|
Please answer the following questions:
Define test-driven development
If you are following test-driven-development, can you ever skip the “RED” step of the process?
List at least 3 benefits of TDD. Each benefit should be explained in a short paragraph.
How can you apply a TDD approach to fixing bugs in your code?
How does unit testing help make a dev team more effective?
Take a look at the following code snippets:
# python
assert warning_colour == "orange"
assert warning_colour != "blue"
// javascript
expect(warningColour).toBe("orange")
expect(warningColour).not.toBe("blue")
// java
assertEquals(warningColor,"orange");
assertNotEquals(warningColor,"blue");
For each language, only one of the assertions/expectations is useful and the other one adds no value. Please say which line should be removed and explain why.
Please follow the following instructions to submit your work:
TOPIC: How to submit your markdown files