SóProvas


ID
5270341
Banca
CESPE / CEBRASPE
Órgão
SERPRO
Ano
2021
Provas
Disciplina
Engenharia de Software
Assuntos

Acerca de metodologias ágeis de desenvolvimento, julgue o item seguinte.


Em TDD, os testes de um sistema devem ocorrer antes da implementação e ser oportunos, isolados e autoverificáveis.

Alternativas
Comentários
  • F.I.R.S.T

    F (Fast) - Rápidos: devem ser rápidos, pois testam apenas uma unidade;

    I (Isolated) - Testes unitários são isolados, testando individualmente as unidades e não sua integração;

    R (Repeateble) - Repetição nos testes, com resultados de comportamento constante;

    S (Self-verifying) - A auto verificação deve verificar se passou ou se deu como falha o teste;

    T (Timely) - O teste deve ser oportuno, sendo um teste por unidade.

    .

    https://www.devmedia.com.br/tdd-fundamentos-do-desenvolvimento-orientado-a-testes/28151

  • Como é possível testar algo que ainda não foi implementado? Se a pergunta fosse: "o desenvolvimento dos testes.. antes da implementação" estaria, ao meu entender, correta. Creio que caberia recurso.

  • na verdade o I é de independente..

    um teste nao deve depender do outro

    • Fast — test should be fast. When test run slow, you won’t want to run them frequently.
    • Independent — Tests should not depend on each other. Tests should be able to run in any order.
    • Repeatable — Tests should be repeatable in any environment. If your test aren’t repeatable in any environment, then you’ll always have an excuse for why they fail.
    • Self-Validating — Tests should have a boolean output. You should not have to read through a log file to tell whether the tests pass.
    • Timely — Tests need to be written in a timely fashion. Unit test should be written just before the production code. If you write tests after the production code, then you may find the production code to be hard to test.