Curso Test Driven Development and Unit Testing Essentials

  • Test & Point Analysis

Curso Test Driven Development and Unit Testing Essentials

24 horas
Visão Geral

Explore Curso Test Driven Development and Unit Testing Essentials, melhores práticas, testes de banco de dados, refatoração, simulação, recursos avançados e muito mais neste Curso Test Driven Development and Unit Testing Essentials. Ao longo do curso você ganhará experiência prática trabalhando com as melhores práticas para escrever programas em Java usando técnicas de desenvolvimento orientado a testes. Os participantes saem deste curso equipados com as habilidades necessárias para aproveitar sólidas técnicas de desenvolvimento orientado a testes e testes unitários. 

Objetivo

Após realizar este Curso Test Driven Development and Unit Testing Essentials, você será capaz de:

  • Compreender o papel dos testes unitários no desenvolvimento e teste de software
  • Escreva testes de unidade eficazes
  • Incorporar propriedades de testes unitários eficazes
  • Entenda os benefícios do desenvolvimento orientado a testes e de testes
  • Aplicar técnicas e práticas para auxiliar na adoção bem-sucedida do Desenvolvimento Orientado a Testes
  • Trabalhe com o JUnit e a interface JUnit Test Runner
  • Use JUnit para conduzir a implementação do código Java
  • Depurar em conjunto com testes
  • Compreender os fundamentos do TDD utilizando Java, bem como a sua importância, utilizações, pontos fortes e fracos.
  • Entenda como o JUnit afeta sua perspectiva de desenvolvimento e aumenta seu foco em uma tarefa.
  • Codifique JUnit usando as melhores práticas
  • Crie programas JUnit bem estruturados
  • Compile e execute programas usando JUnit e DBUnit
  • Estenda os testes com objetos simulados usando Mockito
  • Use técnicas de refatoração disponíveis para tornar o código o mais reutilizável/robusto possível.
  • Aplique várias técnicas de teste
Publico Alvo
  • Desenvolvedores e programadores de software
  • Praticantes Ágeis
  • Profissionais de garantia de qualidade
  • Testadores de software
  • Proprietários do produto
  • Gerentes de projeto
  • Gerente de TI
  • Engenheiros de software
Pre-Requisitos
  • desenvolvimento Java 
Materiais
Inglês + Exercícios + Lab Pratico
Conteúdo Programatico

Introducing Test-driven Development 

  1. Test-Driven Development
  2. Rationale for TDD
  3. The process of TDD
  4. Advantages to TDD
  5. Side-effects of TDD
  6. Tools to support TDD
  7. Setup IntelliJ for Using Maven

Unit Testing using JUnit 

  1. Unit Testing Fundamentals
  2. Purpose of Unit Testing
  3. Good Unit Tests
  4. Test Stages
  5. Unit Testing Vs Integration Testing
  6. Understanding Unit Testing Frameworks

Jumpstart: JUnit 5.x

  1. Understand and work with the features of JUnit
  2. Write unit tests using @Test annotation
  3. Test Result Verification (Assertions)
  4. Manage fixtures using @BeforeEach, @AfterEach, @BeforeAll and @AfterAll annotations
  5. Maven setup using Surefire plugin

Annotations

  1. Use @DisplayName to specify a custom name for the test
  2. Check for exceptions thrown by test
  3. Use @Disabled to prevent a test class or method from running
  4. Use timeouts to fail test that take longer than required
  5. Test Execution Order

Hamcrest

  1. Learn the notation of assertThat
  2. Know the objective of Hamcrest library
  3. Use Hamcrest's logical and object matchers
  4. Use Hamcrest's number and collection matchers

Parameterized Tests

  1. The @ParameterizedTest annotation
  2. A parameterized test to test code under several conditions
  3. Define different sources for test data (@ValueSource, @CsvSource, @CsvFileSource,@EnumSource, @MethodSource, @ArgumentSource)

Advanced Features

  1. JUnit 4 vs JUnit 5
  2. Nested Unit Tests
  3. Repeated Tests
  4. JUnit Extensions
  5. ExecutionConditions
  6. Lambda Support
  7. Grouped Assertions

JUnit Best Practices

  1. \"Good\" Tests
  2. Bad Smell
  3. White-Box Unit Testing
  4. Black-Box Unit Testing
  5. Automation and Coverage

Mocking 

  1. Mocking of Components
  2. Why We use Test Dummies
  3. Working with Mock Objects
  4. Using Mocks with the User Interface
  5. Mock Object Strategies

Mock Objects and Mockito

  1. Mockito Description and Features
  2. Mockito Object Lifecycle
  3. JUnit 5 and Mockito Dependency Injection
  4. Stubs Using ArgumentMatchers
  5. Verifying Behavior in Mockito
  6. Partial Mock Objects
  7. The Spy annotation

PowerMock

  1. PowerMock Description and Features
  2. Using PowerMockito
  3. @PrepareForTest
  4. Mocking a final class or final method
  5. Mocking a Static Method

Advanced Topics 

  1. State-based vs. Interaction-based Testing
  2. State-based Testing
  3. Interaction-based Testing
  4. Mock Objects Support Each Approach
  5. Three Areas to Check in a Test

Improving Code Quality Through Refactoring

  • Refactoring Overview
  • Refactoring and Testing
  • Refactoring to Design Patterns
  • Lab: Refactoring

Database Testing: DbUnit

  1. Setting up DbUnit
  2. Defining a Dataset File in XML, CSV or Excel
  3. Writing a DbUnit Test Class
  4. Assert the results
  5. Use the FailureHandler and ValueComparer
  6. Using Date and Time in test sets
  7. Export a data set
TENHO INTERESSE

Cursos Relacionados

Curso Teste Ágil Nível Intermediário

24 horas

Curso Analista de Teste Nível Avançado

24 horas

Curso Requisitos e Validação de Teste

24 horas

Curso Fundamento de Teste de Software

24 horas

Curso APF Analise de Ponto de Função Exame CFPS IFPUG

32 horas

Curso Analise de Ponto de Função Certificação do IFPUG

32 Horas

Curso Teste de Software Ágil Foundation

16 horas

Curso Teste de Software Fundamentos

24 horas

Curso APP Mobile Testing Foundation

16 horas

Curso Automação de Teste Agil

16 horas