reginaldl
82b992a5fd
Mark test as complete at teardown.
2017-02-23 11:31:37 -08:00
Bruno Oliveira
a867f71c7a
Merge pull request #89 from wronglink/custom_scheduler
...
[WIP] Allow custom scheduler class implementation
2017-02-16 09:40:36 -02:00
Michael Elovskikh
4ed8161ef8
Renamed scheduller remove_item method to mark_test_complete
2017-02-15 23:54:23 +05:00
Michael Elovskikh
c809406ef6
Refactor scheduller interface, make more properties instead of methods
2017-02-15 11:43:56 +05:00
Michael Elovskikh
a99e6e7ca8
Clean up scheduller interfaces
2017-02-15 00:21:26 +05:00
Michael Elovskikh
6200123fac
Made EachScheduling.numnodes countable from config
2017-02-14 20:19:55 +05:00
Michael Elovskikh
a2aaf9bf04
Rename init_distribute() to more clear schedule()
2017-02-14 20:19:55 +05:00
Michael Elovskikh
27ffbbb4f7
Unified scheduler class interface
2017-02-14 20:19:55 +05:00
Michael Elovskikh
81003df660
Fix codestyle
2017-02-14 20:19:55 +05:00
Michael Elovskikh
753f9241a7
Support older pytest versions
2017-02-14 20:19:55 +05:00
Michael Elovskikh
2ff2772521
Use pytest_xdist_make_scheduler hook to set up scheduller instance
2017-02-14 20:19:55 +05:00
Michael Elovskikh
ffcbe44685
Fix codestyle
2017-02-14 20:19:55 +05:00
Michael Elovskikh
d5ba3804bb
Use __import__ instead of importlib for py26 support
2017-02-14 20:19:55 +05:00
Michael Elovskikh
7d099b65c2
Allow custom scheduler class
2017-02-14 20:19:55 +05:00
Katerina Koukiou
63431e749e
Add worker_id into TestReport
2017-02-14 15:45:06 +01: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
iansharkey
d91819114a
Fix for eventname test
...
Fix process_from_remote to check eventname against a single-element tuple instead of a string sequence.
2017-01-06 20:47:34 -05: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
Bruno Oliveira
d498cb3e0f
Add env variables to identify workers
2016-08-04 21:53:13 -03:00
Bruno Oliveira
305acdd72a
Cleanly shutdown workers if session should be interrupted
...
As discussed in #66
2016-06-07 19:35:08 -03:00
Bruno Oliveira
b4a7a1a8a8
Fix internal error when using --maxfail option
...
Fix #65
Fix #62
2016-06-06 20:55:54 -03:00
Bruno Oliveira
20fe1f9874
Skip progress display when in non-terminal (pytest >= 2.9)
...
See pytest-dev/pytest#1397
2016-05-11 22:15:25 -03:00
hellmanj
7f8ae3944c
worker_id fixture as shown in #47
2016-02-23 17:58:33 -05:00
Bruno Oliveira
96506867d1
Refactor tox and ci scripts
...
Make sure a plain "tox" command works in all platforms without failures,
which facilitates making releases using a "devpi upload/test" workflow
* Fix small flakes failures
* Limit py35 testing to pytest>=2.7, as pytest<2.7 does not work on py35
* pexpect environments only work on Linux platforms and should be skipped on Windows
* Simplify AppVeyor script by running all tox environments: no need to have a build matrix
because AppVeyor does not execute builds in parallel
* Add all environments to travis.yml, obtained from "tox --listenvs"
2016-01-30 16:47:07 -02:00
Bruno Oliveira
2ae9bd7f43
Add new pytest_xdist_node_collection_finished hook
...
Fix #8
2015-12-12 12:44:27 -02:00
Bruno Oliveira
c58d22f279
Make xdist work even if looponfail or boxed are disabled
...
Fix #32
2015-12-12 11:14:58 -02:00
Hyunjun Kim
4ff6be21a8
Fix typos
2015-12-09 13:23:43 +09:00
Bruno Oliveira
5ddef63085
xdist now works if the internal tmpdir plugin is disabled
...
Fix #22
2015-12-05 12:09:00 -02:00
Nicholas Chammas
4c22653fd4
Typo fixes to docstrings
2015-12-01 14:45:03 -05:00
Steven Hazel
412febd898
pep8 and python 3 compatibility fixes
2015-11-18 13:39:53 -08:00
Steven Hazel
3140873f0a
bugfix: iterate in a python 3 compatible way
2015-11-18 13:34:39 -08:00
Steven Hazel
09d79ace35
Do a better job parallelizing the inital batch of tests when the
...
number of nodes is more than half the number of tests. This makes it
possible, for example, to run all tests in parallel, where previous
the maximum parallelization was half of all tests.
2015-11-18 13:06:04 -08:00
Omer Katz
26abac7a95
Added error handling to -n auto.
2015-11-09 12:30:10 +02:00
Ronny Pfannschmidt
24aeaad857
fix HostRSync filter matching (broken by the flake8 fixes)
2015-09-01 22:50:47 +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
8630c27c75
flake8 fixes
2015-08-18 08:45:18 +02:00
Ronny Pfannschmidt
eba5319fdb
clean up setup.py and use setuptools_scm
2015-08-18 08:29:23 +02:00
Ronny Pfannschmidt
ec89a3c36b
split up the plugin and extend tox test matrix
2015-08-08 11:57:08 +02:00
Ronny Pfannschmidt
6bab1dab75
simplify HostRsync constructor
2015-08-05 22:04:21 +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
Bruno Oliveira
a131d34b2d
testscollected is now a public Session attribute
2015-07-06 20:27:41 -03:00
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
Comrade DOS
9aee5f3d66
Add auto detection CPUs number.
2015-01-12 17:51:11 +06: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