author | Laurent Peuch <cortex@worlddomination.be> |
Tue, 12 Feb 2019 15:51:21 +0100 | |
changeset 12370 | b3084ae2e718 |
parent 12358 | e0b659abe4b8 |
child 12508 | a8c1ea390400 |
permissions | -rw-r--r-- |
12358
e0b659abe4b8
Add changelog note for running tests with pytest-xdist
Philippe Pepiot <philippe.pepiot@logilab.fr>
parents:
diff
changeset
|
1 |
3.27 (not yet released) |
e0b659abe4b8
Add changelog note for running tests with pytest-xdist
Philippe Pepiot <philippe.pepiot@logilab.fr>
parents:
diff
changeset
|
2 |
======================= |
e0b659abe4b8
Add changelog note for running tests with pytest-xdist
Philippe Pepiot <philippe.pepiot@logilab.fr>
parents:
diff
changeset
|
3 |
|
e0b659abe4b8
Add changelog note for running tests with pytest-xdist
Philippe Pepiot <philippe.pepiot@logilab.fr>
parents:
diff
changeset
|
4 |
New features |
e0b659abe4b8
Add changelog note for running tests with pytest-xdist
Philippe Pepiot <philippe.pepiot@logilab.fr>
parents:
diff
changeset
|
5 |
------------ |
e0b659abe4b8
Add changelog note for running tests with pytest-xdist
Philippe Pepiot <philippe.pepiot@logilab.fr>
parents:
diff
changeset
|
6 |
|
e0b659abe4b8
Add changelog note for running tests with pytest-xdist
Philippe Pepiot <philippe.pepiot@logilab.fr>
parents:
diff
changeset
|
7 |
* Tests can now be run concurrently across multiple processes. You can use |
e0b659abe4b8
Add changelog note for running tests with pytest-xdist
Philippe Pepiot <philippe.pepiot@logilab.fr>
parents:
diff
changeset
|
8 |
`pytest-xdist`_ for that. For tests using `PostgresApptestConfiguration` you |
e0b659abe4b8
Add changelog note for running tests with pytest-xdist
Philippe Pepiot <philippe.pepiot@logilab.fr>
parents:
diff
changeset
|
9 |
should be aware that `startpgcluster()` can't run concurrently. Workaround is |
e0b659abe4b8
Add changelog note for running tests with pytest-xdist
Philippe Pepiot <philippe.pepiot@logilab.fr>
parents:
diff
changeset
|
10 |
to call pytest with ``--dist=loadfile`` to use a single test process per test |
e0b659abe4b8
Add changelog note for running tests with pytest-xdist
Philippe Pepiot <philippe.pepiot@logilab.fr>
parents:
diff
changeset
|
11 |
module or use an existing database cluster and set ``db-host`` and |
e0b659abe4b8
Add changelog note for running tests with pytest-xdist
Philippe Pepiot <philippe.pepiot@logilab.fr>
parents:
diff
changeset
|
12 |
``db-port`` of ``devtools.DEFAULT_PSQL_SOURCES['system']`` accordingly. |
e0b659abe4b8
Add changelog note for running tests with pytest-xdist
Philippe Pepiot <philippe.pepiot@logilab.fr>
parents:
diff
changeset
|
13 |
|
e0b659abe4b8
Add changelog note for running tests with pytest-xdist
Philippe Pepiot <philippe.pepiot@logilab.fr>
parents:
diff
changeset
|
14 |
.. _pytest-xdist: https://github.com/pytest-dev/pytest-xdist |
e0b659abe4b8
Add changelog note for running tests with pytest-xdist
Philippe Pepiot <philippe.pepiot@logilab.fr>
parents:
diff
changeset
|
15 |