[py-svn] r65325 - py/extradoc/talk/ep2009
hpk at codespeak.net
hpk at codespeak.net
Wed May 20 15:14:04 CEST 2009
Author: hpk
Date: Wed May 20 15:14:04 2009
New Revision: 65325
Added:
py/extradoc/talk/ep2009/
py/extradoc/talk/ep2009/tutorial-advanced.txt
- copied, changed from r63218, py/extradoc/talk/pycon-us-2009/proposal-pytest-advanced.txt
Log:
ep tutorial talks as submitted
Copied: py/extradoc/talk/ep2009/tutorial-advanced.txt (from r63218, py/extradoc/talk/pycon-us-2009/proposal-pytest-advanced.txt)
==============================================================================
--- py/extradoc/talk/pycon-us-2009/proposal-pytest-advanced.txt (original)
+++ py/extradoc/talk/ep2009/tutorial-advanced.txt Wed May 20 15:14:04 2009
@@ -1,73 +1,73 @@
-Title: py.test - cross-platform and distributed testing
-Presenter: Holger Krekel <holger at merlinux.eu>, Brian <brian at dorseys.org>
+Title: rapid testing with py.test
+Presenter: Holger Krekel <holger at merlinux.eu>
Tutorial format: interactive lecture
-Recording: I give permission to record and publish my PyCon tutorial for free distribution.
Intended Audience: Python programmers
-Maximum number of students: maybe 30
+Maximum number of students: 30
Perequisites/knowledge: good knowledge of python programming, basic familiarity with automated testing
-Requirements: Attendees are welcome to bring their laptops with Python installed (version 2.4 or higher).
-Notes to reviewer: visting the beginner-oriented tutorial "rapid testing with minimal effort" is recommended, but not required.
+Requirements: Attendees should bring their laptops with Python installed (version 2.4 or higher).
Tutorial Summary:
-Want to know more about advanced automated testing with Python?
-Use a tool that allows you to ad-hoc distribute tests to multiple
-CPUs for speed and to multiple platforms for compatibility checks?
-With tons of debugging help in failure situations?
-
-This tutorial provides in-depth information on advanced usages
-of the popular py.test tool. We highlight its current feature set
-including using and writing extensions for generating HTML pages,
-testing Javascript or ReST documents. We showcase and discuss ways
-of distributing tests across CPUs and platforms and will leave
-time to discuss and tackle specific scenarios brought up
-during the session.
+Want to dive deeper into automated testing with Python?
+Want to know how to rapidly write all kinds of tests
+and organise your test suite with minimal boilerplate?
+Want to use a tool that allows you to ad-hoc
+distribute tests to multiple machines and platforms?
+
+This tutorial provides in-depth information about writing
+tests in Python and running them with py.test.
+We walk through basic consecutive examples, the current
+feature set and exercise ways to setup and configure
+custom test runs. In the second part we distribute
+tests to multiple CPUs and platforms and discuss
+the basics of extension mechanism.
+
+The tutorial format will be an interactive lecture with
+some exercises and plenty of time for questions. Please
+bring your laptop and have Python installed and working.
-The tutorial format will be an interactive lecture with plenty
-of time for questions.
+Draft Outline:
-Outline for review:
+Intro: quick round on backgrounds of participants and talker
-Terminology/Overview (20 minutes)
+Terminology/Overview (20 minutes)
- developer and "customer" tests
- small/medium/big tests aka unit/functional/integration
- acceptance tests
- benefits of automated testing
-- existing python testing tools
-Walkthrough py.test basic features (30 minutes)
-- example of test module
-- working with failures, tracebacks
-- generative tests
-- skipping chunks within doctests
-- looponfailing: run large test set until all tests pass
-
-Using extensions (40 minutes)
-- integrate collection/run of traditional unit-tests
-- run functions in their own tempdir
-- testing ReST documents
-- running Javascript tests
-- running Prolog tests
-- html reporting for nightly runs
+Walkthrough Python test functions (60 minutes)
+- installing, basic usage of py.test
+- test functions
+- test classes
+- interactive debugging and pdb introspection
+- using setup state (fixtures) in your tests
+- adding a command line option for test setup
+- parametrizing tests with multiple values
+- looponfailing: run test set until all tests pass
-Break
+* break *
-Writing extensions (30 minutes)
-- overview on extensibility
-- per-project hooks for customization
-- conftest.py mechanism
-- global hooks for plugins
-- event system for custom reporting
-- test collection hooks
-- test running hooks
-- writing cross-project plugins
+distributing tests (30 minutes)
-Distributed testing (45 minutes)
-- motivation/vision
- run your tests on multiple CPUs/multicore
- running tests on multiple machines at once
- running tests on windows, driven by Unix
- do's and dont's for cross-process testing
+testing extensions (20 minutes)
+- traditional unit tests
+- doctests
+- ReST documents
+- Javascript tests
+
+* break *
+
+Writing extensions (30 minutes)
+- hook mechanism
+- local and global plugins
+- test collection hooks + example
+- test running hooks + example
+
Buffer, Q&A (15 minutes)
More information about the pytest-commit
mailing list