Lecture 4 Flashcards

1
Q

How is TDD different from the common pattern?

A

Tests are written before coding a feature.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Do you write all the tests before programming with TDD?

A

No, it’s an iterative process.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Is TDD identical to unit testing?

A

No, very similar but a test suite can still include both.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What agile principle TDD aligns with?

A

Acceptance test can be a a source of TDD cases

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly