Developpez.com

Python

Choisissez la catégorie, puis la rubrique :

23.4 test -- Regression tests package for Python

23.4 test -- Regression tests package for Python

The test package contains all regression tests for Python as well as the modules test.test_support and test.regrtest. test.test_support is used to enhance your tests while test.regrtest drives the testing suite.

Each module in the test package whose name starts with "test_" is a testing suite for a specific module or feature. All new tests should be written using the unittest module; using unittest is not required but makes the tests more flexible and maintenance of the tests easier. Some older tests are written to use doctest and a ``traditional'' testing style; these styles of tests will not be covered.

See Also:

Module unittest:
Writing PyUnit regression tests.
Module doctest:
Tests embedded in documentation strings.



See About this document... for information on suggesting changes.
Python est sacré langage de programmation de l'année 2018 selon l'index TIOBE
Java, JavaScript et C++ ont été les langages les plus demandés en entreprise ces 9 derniers mois
Microsoft dévoile en open source Pyright, un vérificateur de type statique
Apprendre 23 principes pour écrire du code lisible, un tutoriel d'Artur Smiarowski
Contacter le responsable de la rubrique Python

Partenaire : Hébergement Web