nerdexam
Scrum

PSD · Question #118

What are two differences between unit tests and integration tests?

The correct answer is D. A unit tests isolates a specific system behavior E. An integration test may be composed of unit tests. Unit tests are testing the smallest units of code possible and integration tests are testing the components of the system together. Unit tests aims at isolated pieces of behavior and integration tests could be composed of unit tests to test components.

Test Driven Development

Question

What are two differences between unit tests and integration tests?

Options

  • AA unit tests only runs on the developer's computer
  • BA unit test is automated
  • CAn integration test runs overnight
  • DA unit tests isolates a specific system behavior
  • EAn integration test may be composed of unit tests

How the community answered

(33 responses)
  • A
    3% (1)
  • B
    6% (2)
  • C
    3% (1)
  • D
    88% (29)

Explanation

Unit tests are testing the smallest units of code possible and integration tests are testing the components of the system together. Unit tests aims at isolated pieces of behavior and integration tests could be composed of unit tests to test components.

Topics

#unit testing#integration testing#test isolation#test types

Community Discussion

No community discussion yet for this question.

Full PSD Practice