[Checkins] SVN: zope.pytest/trunk/doc/samples.rst Add first sample doc. This is by no means ready for release.
Uli Fouquet
uli at gnufix.de
Thu Jan 6 10:18:09 EST 2011
Log message for revision 119424:
Add first sample doc. This is by no means ready for release.
Changed:
A zope.pytest/trunk/doc/samples.rst
-=-
Added: zope.pytest/trunk/doc/samples.rst
===================================================================
--- zope.pytest/trunk/doc/samples.rst (rev 0)
+++ zope.pytest/trunk/doc/samples.rst 2011-01-06 15:18:08 UTC (rev 119424)
@@ -0,0 +1,28 @@
+Examples
+========
+
+We can import stuff from zope.pytest:
+
+ >>> from zope.pytest import configure
+ >>> a=1
+
+We can run py.test for instance like this:
+
+ >>> import os
+ >>> import zope.pytest
+ >>> zopepytest_dir = os.path.dirname(zope.pytest.__file__)
+
+ >>> import pytest
+ >>> pytest.main("%s" % zopepytest_dir)
+ =====... test session starts ...======
+ platform ...
+ collecting ...
+ collected 2 items
+ ...
+ =====... 2 passed in ... seconds ...=====
+ ...
+
+Just an example. We can test this output via the doctest-builder.
+
+Check, whether complete setup fixtures can be tested this way.
+
More information about the checkins
mailing list