Bruno Oliveira
f9a13fe53b
Drop support to old pytest versions and test with python 3.7
2018-11-11 11:27:30 -02:00
Bruno Oliveira
3292e0ede0
Fix handling of skipped modules with pytest.skip at module level
...
Fix #332
2018-11-10 18:20:13 -02:00
Bruno Oliveira
b151e56fbd
Handle unserializable warning arguments
...
Fix #349
2018-10-30 09:44:13 -03:00
Bruno Oliveira
70688b7986
Refactor warning acceptance tests into a class
2018-10-29 18:38:01 -03:00
Bruno Oliveira
3f5a8eeb7f
Merge pull request #356 from pristupa/maxprocessing-option
...
Add --maxprocesses option to use with --numprocesses=auto
2018-10-18 07:54:02 -03: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
Jan Kasiak
fe06f27b8b
Issue node shutdown on empty workload
...
Remote pytest_runtestloop requires at least 2 tests, or a test
and a shutdown command. In case of inter test locking, for
example using a file lock, the tests could deadlock, since the
shutdown command would not be enqueued, and the last test of a
worker would never finish, and would not allow another worker
to make progress.
2018-09-30 15:39:04 -04:00
Bruno Oliveira
b176b37606
Add a test which reproduces #344 and fix the handling code
...
Fix #344
2018-09-27 22:18:52 -03:00
Brandon Hoffman
571d08fb8b
remove unneeded lines
2018-09-26 21:05:30 -05:00
Brandon Hoffman
36c28ee154
add test case for invalid warning handeling
2018-09-26 20:44:01 -05:00
Bruno Oliveira
78030e3d32
Fix warnings transfer between workers and master node with pytest >= 3.8
...
Fix #341
2018-09-25 10:01:20 -03:00
Bruno Oliveira
9bcd0e4352
Optimize collection performance
...
Only send failed collection reports, as master is only interested in failed
reports.
Fix #330
2018-08-18 23:09:00 -03:00
Bruno Oliveira
fced1645cb
Run pre-commit: black, whitespaces, rst
2018-07-27 17:50:55 -03:00
Bruno Oliveira
ee0754bc35
Improve test for Travis fallback
2018-07-27 08:24:34 -03:00
Sergey B Kirpichev
5c59a30277
Add coverage test for Travis CI workaround
2018-07-26 12:56:10 +03:00
Bruno Oliveira
fe1f239612
Remove last references to obsolete py.code
...
Also remove some unnecessary references to py.builtin
Fix #305
2018-07-23 17:36:03 -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
Anthony Sottile
78fcf725cf
Factor out py.std
2018-07-05 15:35:39 -07:00
Bruno Oliveira
1be8a463ff
Add docstring to tests for #277
2018-02-16 20:14:47 -02:00
lmtierney
bd3c7dba8b
Ensure loadscope and loadfile work when the first scope has one work unit
2018-02-08 19:51:42 -06:00
Bruno Oliveira
ee2a1b4f4d
Add an explicit test for backward compatibility with "config.slaveinput"
...
Related to #234
2018-01-30 19:13:14 -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
Bruno Oliveira
449e6c2e00
Add support for the new pytest_runtest_logfinish hook (pytest 3.4)
2018-01-10 17:52:27 -02:00
Bruno Oliveira
0d19e7f22b
Merge remote-tracking branch 'upstream/master' into Corni/loadfilescope
2017-12-22 16:07:51 -02:00
Bruno Oliveira
28d60f94f3
Fix load scope tests in pytest 3.3
...
Fix #260
2017-12-22 15:35:24 -02:00
Hugo
c6f2fdcc31
Remove redundant parentheses
2017-12-21 11:19:58 +02:00
Hugo
8b79d909ea
Rewrite unnecessary list literals as set literals
2017-12-21 11:04:19 +02:00
Cornelius Riemenschneider
fad312fdb7
Add scheduling by test file.
2017-12-14 16:18:46 +01:00
Bruno Oliveira
239065810e
Merge remote-tracking branch 'upstream/master' into timyhou/issue_241
2017-11-22 21:29:32 -02:00
Bruno Oliveira
58f7291a99
Fix E741 and E722 flake errors
2017-11-22 20:00:39 -02:00
thou
2eb1002781
Issue #241 Make copy during serialization of reprtraceback and reprcrash to avoid mutating.
2017-11-21 12:33:07 -06:00
Bruno Oliveira
95b660e26a
Merge pull request #232 from verdesmarald/master
...
Don't create DSession in collect-only mode
2017-10-05 07:35:36 -03:00
Tim Jenness
9e59d07947
Stop looping if all workers have died
...
If the workers are crashing and the restart limit has been met,
we need to stop listening for events and trigger an internal
error.
2017-10-04 17:59:36 -07:00
verdesmarald
1e66af6389
Fix flake8 formatting errors
2017-09-07 16:40:32 +10: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
Bruno Oliveira
2adf810e5e
Add acceptance test for plugins which log tests multiple times
...
Fix #206
2017-08-10 11:18:52 -03:00
Bruno Oliveira
f8e138b986
Fix tests incorrectly identified if worker crashes during teardown stage
...
Fix #124
2017-08-10 10:43:40 -03:00
Bruno Oliveira
20a1b9ef11
Fix crash when transferring internal pytest warnings from workers to the master node
...
Fix #214
2017-08-09 17:55:16 -03:00
Bruno Oliveira
fb6a6872a0
Use pkg_resources to parse the actual pytest version
2017-08-09 10:10:01 -03:00
Bruno Oliveira
c31ec8b222
Skip test_logwarning on pytest versions older than 3.1
2017-08-09 10:10:01 -03:00
Bruno Oliveira
d0474076e9
Transfer warnings from workers to master
...
Fix #92
2017-08-09 10:10:01 -03:00
Ronny Pfannschmidt
15c51c497b
mark looponfail tests broken by 3.1+ as xfail
2017-08-09 14:31:50 +02:00
Ronny Pfannschmidt
9884285915
Merge pull request #202 from nicoddemus/traceback-error
...
Fix serialization of native tracebacks
2017-08-08 12:50:29 +02:00
Bruno Oliveira
d564364c44
Add acceptance test for different traceback styles
2017-08-07 20:22:21 -03:00
Bruno Oliveira
435e5e8ac5
Fix serialization report tests
...
No idea why using "-n1" on one of the those tests makes the
second test to fail.
See pytest-dev/pytest-xdist#202 for a full description.
2017-08-07 20:21:40 -03:00
Bruno Oliveira
fbe793ed04
Merge pull request #1 from RonnyPfannschmidt/remove-boxed
...
Remove boxed and provide --boxed via pytest-forked
2017-08-05 05:06:24 -03:00
Bruno Oliveira
5dc87143ad
Fix serialization of native tracebacks
...
Fix #196
2017-08-04 20:13:30 -03:00
Bruno Oliveira
d6139b2525
Make tests for loadscope deterministic
...
Fix #199
2017-08-04 18:18:42 -03:00