Procura

Engenharia de softwareTeste de software


EXERCÍCIOS - Exercício 52

  • (UPENET/IAUPE 2017)

De acordo com o Sommerville na 9ª edição em inglês do seu livro Software Engineering , os passos do TDD são essencialmente os seguintes:

1. You start by identifying the increment of functionality that is required. This should normally be small and implementable in a few lines of code.

2. You write a test for this functionality and implement this as an automated test. This means that the test can be executed and will report whether or not it has passed or failed.

3. You then run the test, along with all other tests that have been implemented. Initially, you have not implemented the functionality so the new test will fail. This is deliberate as it shows that the test adds something to the test set.

4. You then implement the functionality and re-run the test. This may involve refactoring existing code to improve it and add new code to what’s already there.

5. Once all tests run successfully, you move on to implementing the next chunk of functionality.

Sobre eles, é INCORRETO afirmar que




A) o passo 1 envolve implementar algumas linhas de código da funcionalidade requerida.

B) no passo 2, o teste deve ser escrito.

C) no passo 3, todos os testes devem ser executados juntos, e, como a funcionalidade ainda não foi implementada, o novo teste vai falhar.

D) a funcionalidade deve ser implementada no passo 4.

E) no passo 5, ao se identificar que todos os testes rodaram com sucesso, passa-se a implementar o próximo pedaço de funcionalidade.


Próximo:
EXERCÍCIOS - Exercício 53

Vamos para o Anterior: Exercício 51

Tente Este: Exercício 61

Primeiro: Exercício 1

VOLTAR ao índice: Engenharia de software






Cadastre-se e ganhe o primeiro capítulo do livro.
+
((ts_substr_ig=0.00ms))((ts_substr_id=15.84ms))((ts_substr_m2=0.00ms))((ts_substr_p2=0.61ms))((ts_substr_c=0.98ms))((ts_substr_im=0.79ms))
((total= 18ms))