]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
test: document --pq-trace and --pq-debug pytest option
authorDenis Laxalde <denis.laxalde@dalibo.com>
Mon, 10 Oct 2022 15:26:38 +0000 (17:26 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 11 Oct 2022 12:17:59 +0000 (13:17 +0100)
tests/README.rst

index 2e0511c1c42f8e3ac0d7eff55892c84950862e82..63c72382a9f54fb062c2bccdd13d744bec390b85 100644 (file)
@@ -55,6 +55,13 @@ Test options
       [...]
       ==== 1877 passed, 2 skipped, 169 deselected, 48 xfailed in 13.47s =====
 
+- ``pytest`` option ``--pq-trace={TRACEFILE,STDERR}`` can be used to capture
+  libpq trace. When using ``stderr``, the output will only be shown for
+  failing or in-error tests, unless ``-s/--capture=no`` option is used.
+
+- ``pytest`` option ``--pq-debug`` can be used to log access to libpq's
+  ``PGconn`` functions.
+
 
 Testing in docker
 -----------------