Daniel Hahler
6a21a5aa81
minor: fix error message and wrongly joined/blackified strings
2018-12-05 19:46:14 +01:00
Pavel Pristupa
ddefd3f453
Call group.addoption() instead of _addoption() when parsing command-line arguments
...
Fix #337
2018-10-17 17:48:47 +07:00
Pavel Pristupa
5ce8a6ec1a
Add maxprocesses option to limit the maximum number of workers when using numprocesses=auto
...
Fix #337
2018-10-17 17:08:56 +07:00
Bruno Oliveira
fced1645cb
Run pre-commit: black, whitespaces, rst
2018-07-27 17:50:55 -03:00
Sergey B Kirpichev
d3ef33ab32
Refactor automatic cpu detection code to auto_detect_cpus()
2018-07-26 12:52:18 +03:00
Sergey B Kirpichev
c950d88204
Workaround cpu detection on Travis CI
...
Closes #316
2018-07-25 19:05:19 +03:00
Bruno Oliveira
a06e75cc78
Fix flake8 issue
2018-07-21 12:09:44 -03:00
Yoan Blanc
04882074e1
plugin: get cpu_count from sched_getaffinity
...
Signed-off-by: Yoan Blanc <yoan.blanc@exoscale.ch >
2018-07-18 08:32:01 +02:00
feuillemorte
b04703b6ba
#234 Fix flake 8 and fix comments
2018-01-17 23:34:39 +03:00
feuillemorte
40491279ef
#234 Added master/worker terminology
2018-01-17 23:07:29 +03:00
feuillemorte
f1e6dc4344
use master/worker terminology
2018-01-16 21:46:43 +03:00
Cornelius Riemenschneider
fad312fdb7
Add scheduling by test file.
2017-12-14 16:18:46 +01:00
Ronny Pfannschmidt
1cd7001647
Merge pull request #233 from blueyed/improve-pdb-usage-error
...
Improve UsageError when used with --pdb
2017-10-05 13:19:25 +02:00
Daniel Hahler
3799caa4fc
Improve UsageError when used with --pdb
...
It might not be clear that pytest-xdist is used at all, and this should
help users to make --pdb work.
2017-09-23 21:07:39 +02:00
verdesmarald
7674f6b186
Add tests for interactions between boxed, dist and collect-only.
...
Re-enable parsing of the boxed option with collect-only
2017-09-07 16:09:06 +10:00
verdesmarald
c874872190
Don't create DSession in collect-only mode
2017-09-04 14:25:42 +10:00
Bruno Oliveira
3ed405f22f
Add docstring for worker_id
...
Fix #190
2017-08-10 21:51:30 -03:00
Ronny Pfannschmidt
f856cb74f4
fix linting issue
2017-08-05 08:28:30 +02:00
Ronny Pfannschmidt
5db31f1ee7
add support for --boxed by aliasing to --forked of pytest-foked
2017-08-04 21:31:01 +02:00
Bruno Oliveira
a7f8c22ae5
Make "-nX" and "--dist=loadscope" work properly together
2017-08-02 21:23:52 -03:00
Carlos Jenkins
b0916f06ce
Implemented a load scheduler that groups tests by scope.
2017-07-28 23:55:09 -06:00
Carlos Jenkins
8356cfa39d
Split schedulers into their own submodule.
2017-07-28 23:55:09 -06:00
Max Linke
dbaf49cd69
add '--numprocesses' as long option for '-n'
...
This is more verbose in scripts that run pytest-xdist. It can also help
in some ci-helper scripts like to auto detect if pytest-xdist should be
installed.
2017-06-22 21:53:16 +02:00
Allan Lewis
1c3cd73f23
xdist.plugin: Remove unnecessary type for --dist
...
1e18f25 corrected an issue with the `type` specification for the `--dist`
argument, setting it to `str`. However, this is the default so there's little
value in specifying it.
2017-01-23 11:22:45 +00:00
Tor Colvin
1e18f25cd0
Don't show warning from pytest 3
2016-10-24 11:28:54 -04:00
Bruno Oliveira
d8d9f3684b
Merge remote-tracking branch 'upstream/master' into cpu-auto-errors
2016-08-06 17:03:06 -03:00
hellmanj
7f8ae3944c
worker_id fixture as shown in #47
2016-02-23 17:58:33 -05:00
Bruno Oliveira
c58d22f279
Make xdist work even if looponfail or boxed are disabled
...
Fix #32
2015-12-12 11:14:58 -02:00
Omer Katz
26abac7a95
Added error handling to -n auto.
2015-11-09 12:30:10 +02:00
Ronny Pfannschmidt
0f5ef95be8
flake8 cleanup
2015-09-01 22:37:51 +02:00
Ronny Pfannschmidt
771f248a04
refactor cpu number autodetection to avoid the regression
2015-08-19 21:34:26 +02:00
Ronny Pfannschmidt
ec89a3c36b
split up the plugin and extend tox test matrix
2015-08-08 11:57:08 +02:00
Bruno Oliveira
4b1ddb9c81
Add --max-slave-restart option
...
Also changed wording used from "failed node" to "crashed slave", to conform
with other messages ("slave sw0 crashed")
2015-07-11 13:12:12 -03:00
Bruno Oliveira
ed9e5cd9ea
merged auto-cpu branch
2015-07-11 12:01:00 -03:00
holger krekel
2ea07f73a7
finalize 1.12 version, some more adaptation for pytest versions, streamlining tox.ini
2015-05-06 13:41:39 +02:00
holger krekel
faf2e0861f
streamline tests so that they work wit pytest-2.8
2015-05-06 13:34:33 +02:00
Comrade DOS
9aee5f3d66
Add auto detection CPUs number.
2015-01-12 17:51:11 +06:00
holger krekel
de377c1001
use config.getoption instead of deprecated config.getvalue
...
and adapt a few tests to also run against pytest-2.6.0.dev
2014-05-14 08:13:56 +02:00
holger krekel
4441002e95
fix pytest/xdist issue485 (also depends on py-1.4.21.dev1):
...
attach stdout/stderr on --boxed processes that die.
2014-03-26 18:33:09 +01:00
holger krekel
6355c3e8d0
add glob support for rsyncignores, add command line option to pass
...
additional rsyncignores. Thanks Anatoly Bubenkov.
2013-12-06 13:26:09 +01:00
Anatoly Bubenkov
bcf1c85f44
docs fixed
2013-12-06 10:19:18 +01:00
Anatoly Bubenkov
027b3f51ed
change metavars
2013-12-05 15:31:52 +01:00
Anatoly Bubenkov
f4b86f0127
add glob support for rsyncignore. add command line option for rsyncignore
2013-12-05 15:19:31 +01:00
holger krekel
8146b27671
now that pytest_runtest_logstart is sent to the master again,
...
disable showing of filenames explicitely with the terminalreporter
2013-11-21 15:00:06 +01:00
holger krekel
8a923ea2f4
remove unncessary hack here as well
2011-11-18 17:01:39 +00:00
holger krekel
e8ae2f9090
small fixes to test suite
2011-11-18 16:03:02 +00:00
holger krekel
fc1f29db68
* introduce progress-reporting
...
* rename somewhat internal pytest_gwmanage_* events to pytest_xdist_*
* make gateway setup a separate step
2010-11-22 15:39:56 +01:00
holger krekel
c924dda30f
shift documentation, remove duplicate code
2010-11-18 14:57:55 +01:00
holger krekel
a0652e9d99
adapt to new import locations
2010-11-13 11:12:19 +01:00
holger krekel
9d55d3c831
adapt to pytest changes, add looponfailingdirs ini-option
2010-11-06 09:58:00 +01:00