KnowledgeCity

Testes de aplicações Angular

This chapter will introduce software testing and how to write tests for your Angular application. You’ll learn about the different types of tests and the features they focus on.
Assista à primeira aula grátis — tenha acesso completo às 7 aulas.

To view this video please enable JavaScript.

Curso: Sob demanda
Intermediário  Provedor Michaela Ochnich  7 Lições ·  17m  em Árabe, Alemão, Inglês, Espanhol, Francês, Português, Chinês simplificado 

Descrição do Curso

This chapter will introduce software testing and how to write tests for your Angular application. You’ll learn about the different types of tests and the features they focus on. You’ll learn how to begin writing unit tests for components and services using Jasmine, a Javascript testing framework, and how to run them with Karma, a test runner created by Angular. 

O Que Você Vai Aprender

  • Compreender os diferentes tipos de testes de software e os recursos que eles focam
  • Escrever testes unitários para componentes e serviços Angular usando Jasmine
  • Executar seus testes usando Karma, o executor de testes criado por Angular
  • Usar TestBed para estruturar e configurar seus testes Angular
  • Distinguir entre diferentes tipos de testes e como estruturar um teste

Principais Conclusões

  • Este capítulo apresenta testes de software e como escrever testes para uma aplicação Angular.
  • Jasmine é um framework de testes JavaScript usado para escrever testes unitários para componentes e serviços.
  • Karma é um executor de testes criado por Angular que é usado para executar seus testes.
  • O capítulo abrange diferentes tipos de testes e os recursos específicos que cada tipo foca.

Perguntas Frequentes

O que vou aprender neste curso?

Este capítulo apresenta testes de software para aplicações Angular, abrangendo os diferentes tipos de testes e como escrever testes unitários para componentes e serviços usando Jasmine, depois executá-los com Karma.

Quais ferramentas de testes este curso usa?

Ele usa Jasmine, um framework de testes JavaScript, para escrever testes unitários e Karma, um executor de testes criado por Angular, para executá-los.

Quais tópicos estão cobertos nas lições?

As lições incluem Introdução a Karma e Jasmine, TestBed, Estrutura de Testes e Tipos de Testes.

Quais são os objetivos de aprendizado deste curso?

Os objetivos são compreender os diferentes tipos de testes de software e aprender como escrever testes unitários usando Jasmine.