mirror of
https://github.com/odoo/runbot.git
synced 2025-03-27 13:25:47 +07:00
[IMP] runbot_merge: test readme & remove leftover pass
This commit is contained in:
parent
2724e47633
commit
175649cd13
@ -1,8 +1,9 @@
|
|||||||
Execute this test suite using pytest.
|
Execute this test suite using pytest.
|
||||||
|
|
||||||
The default mode is to run tests locally using mock objects in place of
|
The default mode is to run tests locally using a mock github.com.
|
||||||
github, see the docstring of remote.py for additional instructions to run
|
|
||||||
against github "actual".
|
See the docstring of remote.py for instructions to run against github "actual"
|
||||||
|
(including remote-specific options) and the end of this file for a sample.
|
||||||
|
|
||||||
Shared properties running tests, regardless of the github implementation:
|
Shared properties running tests, regardless of the github implementation:
|
||||||
|
|
||||||
@ -17,6 +18,30 @@ Shared properties running tests, regardless of the github implementation:
|
|||||||
See pytest's documentation for other options, I would recommend ``-rXs``,
|
See pytest's documentation for other options, I would recommend ``-rXs``,
|
||||||
``-v`` and ``--showlocals``.
|
``-v`` and ``--showlocals``.
|
||||||
|
|
||||||
When running "remote" tests as they take a very long time (hours) `-x`
|
When running "remote" tests as they take a very long time (hours) ``-x``
|
||||||
(aka ``--maxfail=1``) and ``--ff`` (run previously failed first) is also
|
(aka ``--maxfail=1``) and ``--ff`` (run previously failed first) is also
|
||||||
recommended unless e.g. you run the tests overnight.
|
recommended unless e.g. you run the tests overnight.
|
||||||
|
|
||||||
|
``pytest.ini`` sample
|
||||||
|
---------------------
|
||||||
|
|
||||||
|
.. code:: ini
|
||||||
|
|
||||||
|
[github]
|
||||||
|
owner = test-org
|
||||||
|
token = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
||||||
|
|
||||||
|
[role_reviewer]
|
||||||
|
name = Dick Bong
|
||||||
|
user = loginb
|
||||||
|
token = bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
|
||||||
|
|
||||||
|
[role_self_reviewer]
|
||||||
|
name = Fanny Chmelar
|
||||||
|
user = loginc
|
||||||
|
token = cccccccccccccccccccccccccccccccccccccccc
|
||||||
|
|
||||||
|
[role_other]
|
||||||
|
name = Harry Baals
|
||||||
|
user = logind
|
||||||
|
token = dddddddddddddddddddddddddddddddddddddddd
|
@ -77,7 +77,6 @@ def pytest_addoption(parser):
|
|||||||
"queries per minute, free is 40, multi-repo batching tests will "
|
"queries per minute, free is 40, multi-repo batching tests will "
|
||||||
"blow through the former); localtunnel has no rate-limiting but "
|
"blow through the former); localtunnel has no rate-limiting but "
|
||||||
"the servers are way less reliable")
|
"the servers are way less reliable")
|
||||||
pass
|
|
||||||
|
|
||||||
@pytest.fixture(scope="session")
|
@pytest.fixture(scope="session")
|
||||||
def config(pytestconfig):
|
def config(pytestconfig):
|
||||||
|
Loading…
Reference in New Issue
Block a user