Kyle Roeschley
4d27110beb
Add 'logical' CPU count choice for --numprocesses
...
This can significantly speed up runs when testing is not CPU-bound.
2021-04-27 08:47:21 -05:00
Ronny Pfannschmidt
9e4e8b74e0
Apply suggestions from code review
...
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com >
2021-02-09 21:51:30 +01:00
Ronny Pfannschmidt
166bdb4103
prepare #592 : replace master with controller where we can
2021-02-07 22:08:22 +01:00
Bruno Oliveira
607d8288d4
Add psutil extra and introduce pytest_xdist_auto_num_workers hook
...
This makes using psutil optional and opens up the possibility of customization
through the pytest_xdist_auto_num_workers hook, making things like #477 possible.
Fix #585
2020-08-25 08:38:28 -03:00
Bruno Oliveira
e469fc7b80
Revert "Merge pull request #560 from utapyngo/logical-cpu-count"
...
This reverts commit 0094b29a14 , reversing
changes made to c6255faad4 .
2020-08-24 14:50:36 -03:00
Sylvain Marié
ba8398478e
New methods is_xdist_worker, is_xdist_master, get_xdist_worker_id. ( #505 )
...
Co-authored-by: Sylvain MARIE <sylvain.marie@se.com >
Co-authored-by: Zac Hatfield-Dodds <Zac-HD@users.noreply.github.com >
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com >
2020-08-05 20:41:54 -03:00
Zac-HD
de3e54fd27
Finish removal of "slave" terminology
...
See issue #234 . It's time.
2020-08-03 22:51:42 +10:00
Zac Hatfield-Dodds
0094b29a14
Merge pull request #560 from utapyngo/logical-cpu-count
2020-08-03 22:49:09 +10:00
Ivan Zaikin
e528a42ddc
Support OpenBSD and NetBSD
2020-07-28 08:55:32 +07:00
Adam Johnson
b524317863
Make "--pdb" imply "--dist no"
...
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com >
2020-07-24 20:07:42 -03:00
Ivan Zaikin
77e5fdfef9
Use psutil.cpu_count(logical=False) in auto_detect_cpus()
2020-07-23 10:18:43 +07:00
Sven-Hendrik Haase
2183d741bb
Add global session uuid ( fixes #524 )
2020-04-30 19:43:16 +02:00
Tom Boshoven
32a29138fc
Fix issues related to running xdist with the terminal plugin disabled
...
This fixes an issue where the pytest plugin manager returns None if a plugin is not loaded instead of raising an error.
It also makes terminal optional in plugin code.
2019-09-11 19:47:16 -04:00
Bruno Oliveira
2ca058e38a
Remove pytest 2.8 compatibility code
2019-07-11 07:46:53 -03:00
Bruno Oliveira
7d41db3685
Adopt 'src' layout and add 'testing' extras
2019-06-06 19:35:13 -03:00