[py-svn] r63303 - py/extradoc/talk/pycon-us-2009/pytest-advanced

hpk at codespeak.net hpk at codespeak.net
Tue Mar 24 23:55:40 CET 2009


Author: hpk
Date: Tue Mar 24 23:55:37 2009
New Revision: 63303

Modified:
   py/extradoc/talk/pycon-us-2009/pytest-advanced/pytest-advanced.txt
Log:
shifting things around a bit


Modified: py/extradoc/talk/pycon-us-2009/pytest-advanced/pytest-advanced.txt
==============================================================================
--- py/extradoc/talk/pycon-us-2009/pytest-advanced/pytest-advanced.txt	(original)
+++ py/extradoc/talk/pycon-us-2009/pytest-advanced/pytest-advanced.txt	Tue Mar 24 23:55:37 2009
@@ -130,6 +130,12 @@
 - certain managed systems (GAE, Azura, "cloud"...)
 - web browsers, IE, Mozilla, Safari, Mobile .... 
 
+sorry, but 
+========================================
+
+we are living in a complex deployment world! 
+
+
 A vision for automated testing 
 ========================================
 
@@ -276,16 +282,6 @@
 * register the argument maker for it 
 * run your tests 
 
-Test Driven Development - at its best!
-=======================================
-
-meet ``py.test --looponfailing``:
-
-- does a full test run 
-- keeps a set of failing tests 
-- checks for file changes and re-runs failing tests 
-- if all failures fixed, reruns whole test suite
-
 
 Using Plugins and Extensions 
 =========================================
@@ -303,57 +299,22 @@
 - 1.0 uses "plugins" for extending and conftest.py for configuration 
 - but "smooth" transition because of existing test code base 
 
-Conftest.py
-===============
-
-- can be put into test directory or higher up 
-- contains test configuration values 
-- can specifies plugins to use 
-- can provide default values for command line options 
-- (old) can specify collection and test items 
-
 Customizing py.test 
 ===========================
 
+- configuration values go to conftest.py files 
 - write local or global plugins 
-- write conftest.py files 
-
-- add command line options 
-- modify/extend the test collection process 
-- register to reporting events 
-- for debugging:: 
+- provide funcargs 
 
-    py.test --collectonly 
-    py.test --traceconfig 
 
-The collection tree
-===========================
-
-- items: runnable tests - ``item.runtest()``
-- collectors: return collectors or items - ``collector.collect()``
-- collection tree is built iteratively
-- test collection starts from directories or files (via cmdline)
-- test collection not limited to Python files! 
-- use ``py.test --collectonly`` for debugging
-
-Important Collection Objects
-==================================
-
-- **Directory** collect files in directory
-- **FSCollector** a Collector for a File 
-- **Module** collect python Classes and Functions 
-- **Class**/**Instance** collect test methods 
-- **Generator** collect generative tests 
-- **Function** sets up and executes a python test function 
-- **DoctestFile** collect doctests in a .txt file 
-
-Interactive demo "collection tree"
-====================================
+Conftest.py
+===============
 
-you can always inspect the test collection tree 
-tree without running tests::
+- can be put into test directory or higher up 
+- contains test configuration values 
+- can specify plugins to use 
+- can provide default values for command line options 
 
-    py.test --collectonly 
 
 
 Specifying plugins 
@@ -411,6 +372,39 @@
 - writing cross-project plugins 
 
 
+    py.test --collectonly 
+    py.test --traceconfig 
+
+py.test collection of tests 
+=============================
+
+- items: runnable tests - ``item.runtest()``
+- collectors: return collectors or items - ``collector.collect()``
+- collection tree is built iteratively
+- test collection starts from directories or files (via cmdline)
+- test collection not limited to Python files! 
+- use ``py.test --collectonly`` for debugging
+
+Important Collection Objects
+==================================
+
+- **Directory** collect files in directory
+- **FSCollector** a Collector for a File 
+- **Module** collect python Classes and Functions 
+- **Class**/**Instance** collect test methods 
+- **Generator** collect generative tests 
+- **Function** sets up and executes a python test function 
+- **DoctestFile** collect doctests in a .txt file 
+
+Interactive demo "collection tree"
+====================================
+
+you can always inspect the test collection tree 
+tree without running tests::
+
+    py.test --collectonly 
+
+
 Hooks and Events 
 ===================
 



More information about the pytest-commit mailing list