introdução ao nunit
DESCRIPTION
O NUnit é um framework para testes unitários para todas as linguagens da plataforma .NET. Inicialmente portado do JUnit (do Java), a versão de produção atual, a versão 2.6, é a sétima versão principal desta ferramenta de teste unitários para a plataforma .NET. Ele é inteiramente escrito na linguagem C# e foi completamente redesenhado para tirar proveito de muitos recursos das linguagens da plataforma .NET, como por exemplo, atributos personalizados e as capacidades de reflexão. O Teste de unidade ou Teste Unitário é a fase do processo de teste em que se testam as menores unidades de software desenvolvidas (pequenas partes ou unidades do sistema). O alvo são os métodos dos objetos ou módulos/funções ou mesmo pequenos trechos de código. O objetivo é encontrar falhas de funcionamento em uma pequena parte do sistema funcionando independentemente do todo.(wikipedia)TRANSCRIPT
![Page 1: Introdução ao NUNIT](https://reader036.vdocuments.mx/reader036/viewer/2022062405/5579a79cd8b42ac1148b4be8/html5/thumbnails/1.jpg)
INTRODUÇÃOAO
NUNIT
ALAN DRUMMOND
![Page 2: Introdução ao NUNIT](https://reader036.vdocuments.mx/reader036/viewer/2022062405/5579a79cd8b42ac1148b4be8/html5/thumbnails/2.jpg)
• O que é NUnit?• Configurando o Nunit.• Criando uma classe de teste.• Rodando testes.
TÓPICOS
![Page 3: Introdução ao NUNIT](https://reader036.vdocuments.mx/reader036/viewer/2022062405/5579a79cd8b42ac1148b4be8/html5/thumbnails/3.jpg)
• Framework para testes unitários.• Open Source.• Escrito em C# e inicialmente portado do JUNIT (Java).• Compatível com todas as linguagens .Net.
• Benefícios:• Código confiável.• Resposta imediata.• Redução de custos.• Testes hierárquicos – permite testar uma unidade, várias unidades ou
todo o sistema. Também permite que parte do sistema seja isolado.
O QUE É NUNIT?
![Page 4: Introdução ao NUNIT](https://reader036.vdocuments.mx/reader036/viewer/2022062405/5579a79cd8b42ac1148b4be8/html5/thumbnails/4.jpg)
• Download• http://www.nunit.org• Current Stable Release: NUnit 2.6.2 (October 22, 2012)
• Instalação• C:\Program Files\NUnit 2.6.2• No diretório de instalação são criados três subdiretórios: BIN, DOC e
SAMPLES.• O código-fonte do framework pode ser baixado separadamente no site.
* Caso utilize Visual Studio.Net, é mais prático acrescentar o NUnit Test Adapter via Extension Gallery.
CONFIGURANDO O NUNIT
![Page 5: Introdução ao NUNIT](https://reader036.vdocuments.mx/reader036/viewer/2022062405/5579a79cd8b42ac1148b4be8/html5/thumbnails/5.jpg)
CONFIGURANDO O NUNIT• GUI (interface gráfica)
![Page 6: Introdução ao NUNIT](https://reader036.vdocuments.mx/reader036/viewer/2022062405/5579a79cd8b42ac1148b4be8/html5/thumbnails/6.jpg)
CONFIGURANDO O NUNIT• NUnit Test Adapter
![Page 7: Introdução ao NUNIT](https://reader036.vdocuments.mx/reader036/viewer/2022062405/5579a79cd8b42ac1148b4be8/html5/thumbnails/7.jpg)
ES
CR
EV
EN
DO
TES
TES
![Page 8: Introdução ao NUNIT](https://reader036.vdocuments.mx/reader036/viewer/2022062405/5579a79cd8b42ac1148b4be8/html5/thumbnails/8.jpg)
ES
CR
EV
EN
DO
TES
TES
![Page 9: Introdução ao NUNIT](https://reader036.vdocuments.mx/reader036/viewer/2022062405/5579a79cd8b42ac1148b4be8/html5/thumbnails/9.jpg)
RO
DA
ND
O T
ES
TES
![Page 10: Introdução ao NUNIT](https://reader036.vdocuments.mx/reader036/viewer/2022062405/5579a79cd8b42ac1148b4be8/html5/thumbnails/10.jpg)
ES
CR
EV
EN
DO
TES
TES
![Page 11: Introdução ao NUNIT](https://reader036.vdocuments.mx/reader036/viewer/2022062405/5579a79cd8b42ac1148b4be8/html5/thumbnails/11.jpg)
RO
DA
ND
O T
ES
TES
![Page 12: Introdução ao NUNIT](https://reader036.vdocuments.mx/reader036/viewer/2022062405/5579a79cd8b42ac1148b4be8/html5/thumbnails/12.jpg)
ES
CR
EV
EN
DO
TES
TES
![Page 13: Introdução ao NUNIT](https://reader036.vdocuments.mx/reader036/viewer/2022062405/5579a79cd8b42ac1148b4be8/html5/thumbnails/13.jpg)
ES
CR
EV
EN
DO
TES
TES
![Page 14: Introdução ao NUNIT](https://reader036.vdocuments.mx/reader036/viewer/2022062405/5579a79cd8b42ac1148b4be8/html5/thumbnails/14.jpg)
ES
CR
EV
EN
DO
TES
TES
![Page 15: Introdução ao NUNIT](https://reader036.vdocuments.mx/reader036/viewer/2022062405/5579a79cd8b42ac1148b4be8/html5/thumbnails/15.jpg)
ES
CR
EV
EN
DO
TES
TES
![Page 16: Introdução ao NUNIT](https://reader036.vdocuments.mx/reader036/viewer/2022062405/5579a79cd8b42ac1148b4be8/html5/thumbnails/16.jpg)
RO
DA
ND
O T
ES
TES
![Page 17: Introdução ao NUNIT](https://reader036.vdocuments.mx/reader036/viewer/2022062405/5579a79cd8b42ac1148b4be8/html5/thumbnails/17.jpg)
RO
DA
ND
O T
ES
TES
![Page 18: Introdução ao NUNIT](https://reader036.vdocuments.mx/reader036/viewer/2022062405/5579a79cd8b42ac1148b4be8/html5/thumbnails/18.jpg)
FIM