Diferencia entre revisiones de «Usuario:Lmorillas/modulo programacion/python/introduccion a los tests»

De WikiEducator
Saltar a: navegación, buscar
(Página creada con '{{MiTitulo| Introducción a los tests en Python}} {{Lectura| TOCdepth=3| * http://en.wikipedia.org/wiki/Portal:Software_Testing * http://readthedocs.org/docs/nose/en/latest/ * …')
(Sin diferencias)

Revisión de 20:22 10 feb 2012


Lectura



Tipos de tests

  • Tests unitarios
  • Tests funcionales
  • Tests de usuario

Instalar nose

Puedes usar pip o easy_install:

easy_install nose

o

pip install nose

O instalar desde el código fuente:

python setup.py install

Escribe los tests en el proyecto y:Now you can run tests for your project:

 cd path/del/proyecto
 nosetests

Verás algo así:

 ..................................
 ----------------------------------------------------------------------
 Ran 34 tests in 1.440s
 
 OK