Transcript
Page 1: Introdução ao NUNIT

INTRODUÇÃOAO

NUNIT

ALAN DRUMMOND

Page 2: Introdução ao NUNIT

• O que é NUnit?• Configurando o Nunit.• Criando uma classe de teste.• Rodando testes.

TÓPICOS

Page 3: Introdução ao NUNIT

• 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

• 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

CONFIGURANDO O NUNIT• GUI (interface gráfica)

Page 6: Introdução ao NUNIT

CONFIGURANDO O NUNIT• NUnit Test Adapter

Page 7: Introdução ao NUNIT

ES

CR

EV

EN

DO

TES

TES

Page 8: Introdução ao NUNIT

ES

CR

EV

EN

DO

TES

TES

Page 9: Introdução ao NUNIT

RO

DA

ND

O T

ES

TES

Page 10: Introdução ao NUNIT

ES

CR

EV

EN

DO

TES

TES

Page 11: Introdução ao NUNIT

RO

DA

ND

O T

ES

TES

Page 12: Introdução ao NUNIT

ES

CR

EV

EN

DO

TES

TES

Page 13: Introdução ao NUNIT

ES

CR

EV

EN

DO

TES

TES

Page 14: Introdução ao NUNIT

ES

CR

EV

EN

DO

TES

TES

Page 15: Introdução ao NUNIT

ES

CR

EV

EN

DO

TES

TES

Page 16: Introdução ao NUNIT

RO

DA

ND

O T

ES

TES

Page 17: Introdução ao NUNIT

RO

DA

ND

O T

ES

TES

Page 18: Introdução ao NUNIT

FIM


Top Related