Cargando…

Pytest Quick Start Guide : Write Better Python Code with Simple and Maintainable Tests.

Python's built-in unittest module is showing it's age; hard to extend, debug and track what's going on. The pytest framework overcomes these problems and simplifies testing your Python software. Many users love to use pytest and the improvement in their testing shows! This book is the...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Oliveira, Bruno
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham : Packt Publishing Ltd, 2018.
Temas:
Acceso en línea:Texto completo

MARC

LEADER 00000cam a2200000Mi 4500
001 EBOOKCENTRAL_on1051140641
003 OCoLC
005 20240329122006.0
006 m o d
007 cr |n|---|||||
008 180908s2018 enk o 000 0 eng d
040 |a EBLCP  |b eng  |e pn  |c EBLCP  |d NLE  |d MERUC  |d IDB  |d CHVBK  |d OCLCO  |d LVT  |d OCLCF  |d OCLCQ  |d OCLCO  |d UKAHL  |d OCLCQ  |d OCLCO  |d K6U  |d OCLCQ  |d OCLCO 
020 |a 9781789343823 
020 |a 1789343828 
029 1 |a AU@  |b 000065067268 
029 1 |a CHNEW  |b 001025925 
029 1 |a CHVBK  |b 549247424 
035 |a (OCoLC)1051140641 
050 4 |a QA76.73.P98  |b .O458 2018eb 
082 0 4 |a 005.133  |2 23 
049 |a UAMI 
100 1 |a Oliveira, Bruno. 
245 1 0 |a Pytest Quick Start Guide :  |b Write Better Python Code with Simple and Maintainable Tests. 
260 |a Birmingham :  |b Packt Publishing Ltd,  |c 2018. 
300 |a 1 online resource (153 pages) 
336 |a text  |b txt  |2 rdacontent 
337 |a computer  |b c  |2 rdamedia 
338 |a online resource  |b cr  |2 rdacarrier 
588 0 |a Print version record. 
505 0 |a Cover; Title Page; Copyright and Credits; Packt Upsell; Foreword; Contributors; Table of Contents; Preface; Chapter 1: Writing and Running Tests; Installing pytest; pip and virtualenv; Writing and running tests; Running tests; Powerful asserts; Text differences; Lists; Dictionaries and sets; How does pytest do it?; Checking exceptions: pytest.raises; Checking exception messages; Checking warnings: pytest.warns; Comparing floating point numbers: pytest.approx; Organizing files and packages; Tests that accompany your code; Tests separate from your code; Useful command-line options. 
505 8 |a Keyword expressions: -kStop soon: -x, -- maxfail; Last failed, failed first: -- lf, -- ff; Output capturing: -s and -- capture; Disabling capturing with -s; Capture methods with -- capture; Traceback modes and locals: -- tb, -- showlocals; -- tb=long; -- tb=short; -- tb=native; -- tb=line; -- tb=no; -- showlocals ( -l); Slow tests with -- durations; Extra test summary: -ra; Configuration: pytest.ini; Additional command-line: addopts; Customizing a collection; Cache directory: cache_dir; Avoid recursing into directories: norecursedirs; Pick the right place by default: testpaths. 
505 8 |a Override options with -o/ -- overrideSummary; Chapter 2: Markers and Parametrization; Mark basics; Creating marks; Running tests based on marks; Applying marks to classes; Applying marks to modules; Custom marks and pytest.ini; Built-in marks; @pytest.mark.skipif; pytest.skip; pytest.importorskip; @pytest.mark.xfail; pytest.xfail; Parametrization; Enter @pytest.mark.parametrize; Applying marks to value sets; Customizing test IDs; Testing multiple implementations; Summary; Chapter 3: Fixtures; Introducing fixtures; Enter fixtures; Setup/teardown; Composability. 
505 8 |a Sharing fixtures with conftest.py filesScopes; Scopes in action; Autouse; @pytest.mark.usefixtures; Parametrizing fixtures; Using marks from fixtures; An overview of built-in fixtures; tmpdir; tmpdir_factory; monkeypatch; How and where to patch; capsys/capfd; Binary mode; request; Tips/discussion; When to use fixtures, as opposed to simple functions; Renaming fixtures; Prefer local imports in conftest files; Fixtures as test-supporting code; Summary; Chapter 4: Plugins; Finding and installing plugins; Finding plugins; Installing plugins; An overview of assorted plugins; pytest-xdist. 
505 8 |a Pytest-covpytest-faulthandler; pytest-mock; pytest-django; pytest-flakes; pytest-asyncio; pytest-trio; pytest-tornado; pytest-postgresql; docker-services; pytest-selenium; pytest-html; pytest-cpp; pytest-timeout; pytest-annotate; pytest-qt; pytest-randomly; pytest-datadir; pytest-regressions; Honorable mentions; Summary; Chapter 5: Converting unittest suites to pytest; Using pytest as a test runner; Pytest features in unittest subclasses; Converting asserts with unitest2pytest; Handling setup/teardown; Managing test hierarchies; Reusing test code with fixtures; Refactoring test utilities. 
500 |a Migration strategy. 
520 |a Python's built-in unittest module is showing it's age; hard to extend, debug and track what's going on. The pytest framework overcomes these problems and simplifies testing your Python software. Many users love to use pytest and the improvement in their testing shows! This book is the ideal introduction to pytest, teaching you how to write ... 
590 |a ProQuest Ebook Central  |b Ebook Central Academic Complete 
650 0 |a Python. 
650 0 |a Computer software  |x Testing. 
650 0 |a Debugging in computer science. 
650 6 |a Débogage. 
650 7 |a Internet: general works.  |2 bicssc 
650 7 |a Programming & scripting languages: general.  |2 bicssc 
650 7 |a Software testing & verification.  |2 bicssc 
650 7 |a Computers  |x Programming Languages  |x Python.  |2 bisacsh 
650 7 |a Computers  |x Web  |x General.  |2 bisacsh 
650 7 |a Computers  |x Software Development & Engineering  |x Quality Assurance & Testing.  |2 bisacsh 
650 7 |a Computer software  |x Testing  |2 fast 
650 7 |a Debugging in computer science  |2 fast 
776 0 8 |i Print version:  |a Oliveira, Bruno.  |t Pytest Quick Start Guide : Write Better Python Code with Simple and Maintainable Tests.  |d Birmingham : Packt Publishing Ltd, ©2018  |z 9781789347562 
856 4 0 |u https://ebookcentral.uam.elogim.com/lib/uam-ebooks/detail.action?docID=5504834  |z Texto completo 
938 |a Askews and Holts Library Services  |b ASKH  |n AH35077107 
938 |a EBL - Ebook Library  |b EBLB  |n EBL5504834 
994 |a 92  |b IZTAP