Lecture 4 Flashcards
1
Q
How is TDD different from the common pattern?
A
Tests are written before coding a feature.
2
Q
Do you write all the tests before programming with TDD?
A
No, it’s an iterative process.
3
Q
Is TDD identical to unit testing?
A
No, very similar but a test suite can still include both.
4
Q
What agile principle TDD aligns with?
A
Acceptance test can be a a source of TDD cases
5
Q
What are some jUnit methods?
A
assertTrue(statement) assertEquals(expected, result) assertSame(expected, result) assertNotSame(expected, result) asserNull(object) fail() -> throws error message
6
Q
What are some limitations of JUnit?
A
Works great for for methods that returns something.
Difficult to test UIs, robotics.. . unpredictable results are a challenge.