Week 6: Testing Flashcards

1
Q

What does integration testing test?

A

Test that units work together

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

What does unit testing a controller require?

A

Isolate from
webserver
database
views

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

What is the difference between a mock and a stub?

A

Mock has some knowledge of context

  • can return different results
  • assertions to test
    1. data passed in
    2. order of method calling
    3. Interaction with other objects
How well did you know this?
1
Not at all
2
3
4
5
Perfectly