Bruno Oliveira
05ab96feaf
update collected tests from slaves into main pytest session object
...
Upstream changes in https://github.com/pytest-dev/pytest/pull/817 make
pytest-dist always return EXIT_NOTESTSCOLLECTED because the
master node doesn't collect any tests. This patch updates the pytest session
about the collected items on the slaves.
2015-07-04 15:40:55 -03:00
holger krekel
54a43db053
add support for releasing as universal wheel
2015-05-07 12:30:29 +02: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
Bruno Oliveira
d84f1f08d8
fix issue 594: xdist is not executing tests parametrized with random values
...
Now xdist properly reports the collection errors instead of silently failing to execute
the test suite.
2014-09-23 22:09:44 -03:00
Floris Bruynooghe
9e28a56101
Fix rsync
...
Since this now gets called multiple times per gateway we need to
ensure an rsync happens for each combination of (spec, root) otherwise
only the first root for a gateway will be rsynced.
2014-09-17 23:42:33 +01:00
Floris Bruynooghe
76c297bdb0
Fixes for node-restarting in each scheduling
...
* node2collection should only be populated when the collection is
added. This way collection_is_completed can be kept track of
correctly.
* The _removed2pending map needs to have the entire node as key
because it is needed to look up the collection of the gateway which
died in node2collection to check the collection of the replacement
node is identical.
* init_distribute() needs to actually keep track of the started nodes
otherwise it's (re)scheduling gets all confused and will re-schedule
too often.
2014-09-16 23:18:49 +01:00
Floris Bruynooghe
fc335fb7dc
Implement node-restarting for each scheduling
2014-09-16 16:01:51 +02:00
Floris Bruynooghe
f643991f7f
Very rough cut of restarting a failed node
2014-09-15 01:20:45 +02:00
Bruno Oliveira
9d549a0c06
Log different tests collected by slaves instead of an error
...
This is a proposal to fix #556 .
2014-08-02 20:59:45 -03:00
holger krekel
cc237b0d8e
fix various flakes issues and add "flakes" to tox tests
2014-07-20 16:56:21 +02:00
holger krekel
67f80b7c2c
fix pytest issue503: avoid random re-setup of broad scoped fixtures
...
(anything above function).
2014-07-20 16:41:03 +02:00
holger krekel
bfd00a58ff
bump version, add py34 to tox.ini
2014-07-20 08:51:53 +02: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
ffa156ced5
refine distribution fractions and make it dependend on the duration
...
of the last test in a node's set.
2014-01-27 12:39:43 +01:00
holger krekel
e26d4486fc
send multiple "to test" indices in one network message to a slave
...
and improve heuristics for sending chunks where the chunksize
depends on the number of remaining tests rather than fixed numbers.
This reduces the number of master -> node messages (but not the
reverse direction)
2014-01-27 11:37:40 +01:00
holger krekel
18a30fab7d
fix issue419: work with collection indices instead of node ids.
...
This reduces network message size.
2014-01-27 11:37:33 +01:00
holger krekel
dd73d132b1
remove unneccesary item2nodes data structure for load scheduling
2014-01-27 11:37:27 +01:00
holger krekel
a22e0384a1
a failing test for pytest issue419
2014-01-27 11:37:26 +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
27f1d8049b
merge with mainline
2013-12-06 10:20:03 +01:00
Anatoly Bubenkov
bcf1c85f44
docs fixed
2013-12-06 10:19:18 +01:00
Anatoly Bubenkov
a3fac52e85
more readability for return
2013-12-05 23:22:49 +01:00
Anatoly Bubenkov
152f965a70
fix ignores mixing
2013-12-05 16:35:56 +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
aad1aace52
merge fix pytest issue382 - produce "pytest_runtest_logstart" event again
...
in master. Thanks Aron Curzon.
2013-11-19 12:08:55 +01:00
holger krekel
ca54911481
ignore directories and pyc files for changes (editors write tmp/swap
...
files etc., which also affects mtime of directory)
2013-10-07 10:28:08 +02:00
holger krekel
8e88261c15
ignore dot files for file changes (editors write tmp/swap files etc.)
2013-10-07 10:20:24 +02:00
holger krekel
b88b23e358
some test fixes and configure tox-testing against pytest==2.3.5 and pytest>=2.4.2
2013-10-04 10:34:24 +02:00
holger krekel
a9aca9a3ae
fix pytest issue347: slaves running on top of Python3.2
...
will set PYTHONDONTWRITEYBTECODE to 1 to avoid import concurrency
bugs.
2013-09-05 18:52:59 +02:00
holger krekel
45dd5975f0
Merged in dimazest/pytest-xdist/collection_diff_reporting (pull request #3 )
...
Give more context when nodes collected different tests.
2013-09-05 16:23:12 +02:00
Dmitrijs Milajevs
fa96143aeb
Cleanup
2013-09-05 15:30:37 +02:00
Dmitrijs Milajevs
9a50d9de17
Give more context when nodes collected different tests.
2013-09-05 15:24:27 +02:00
holger krekel
f144ef88e3
fix pytest issue41: re-run tests on all file changes, not just
...
randomly select ones like .py/.c.
2013-09-05 14:21:43 +02:00
holger krekel
df66687eae
bump version
2013-04-30 17:08:06 +02:00
Jonathan Hunt
26016aefd1
Use the error longrepr rather than the file path to check
...
for duplicate errors.
2013-04-28 16:14:52 -07:00
Jonathan Hunt
10c9c34c75
Passing tests, avoiding duplicate errors.
2013-04-25 18:20:40 -07:00
Jonathan Hunt
46b94c1c81
Report ImportErrors in distributed mode.
2013-04-25 18:04:24 -07:00
holger krekel
c44fe4e234
merge again
2013-04-02 10:30:52 +02:00
holger krekel
a771352f01
merge
2013-04-02 10:29:51 +02:00
Jeremy Thurgood
587d1501a7
Avoid collecting duplicate failures when using --looponfail.
2013-03-27 17:34:58 +02:00
holger krekel
5488b6d9a1
bump versions
2011-12-16 10:47:33 +00:00
holger krekel
8c6fea9895
remove usage of final_logerrors now that we have better teardown information
2011-12-02 21:03:58 +00:00
holger krekel
1f6d410481
fix issue 93 of pytest - avoid delayed teardowns
2011-12-02 21:03:29 +00:00
holger krekel
d5ff8b066a
tag 1.7
2011-11-18 19:08:05 +00: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