Skip to content
This repository was archived by the owner on Mar 27, 2020. It is now read-only.

Error in run the test #12

Closed
nhufinney opened this issue Jan 13, 2017 · 3 comments
Closed

Error in run the test #12

nhufinney opened this issue Jan 13, 2017 · 3 comments

Comments

@nhufinney
Copy link

nhufinney commented Jan 13, 2017

Hi,

The test runs perfectly once at a time with the command py.test -n 1 tests. But it cannot scale up to 2 or 10 parallel tests with the error

plugins: xdist-1.15.0
gw0 [10] / gw1 [10]
scheduling tests via LoadScheduling
collecting 0 items / 1 errors
==================================== ERRORS ====================================
_____________________________ ERROR collecting gw0 _____________________________
Different tests were collected between gw1 and gw0. The difference is:
--- gw1

+++ gw0

@@ -1,10 +1,10 @@

Would you please help me review this error?
Thank you,
Nhu Finney

@ndmanvar
Copy link
Contributor

Works for me locally (MAC):

[neil@Neils-MacBook-Pro Python-Pytest-Selenium (master)]$ py.test -s -n 10 tests
===================================================================================================== test session starts ======================================================================================================
platform darwin -- Python 2.7.10, pytest-2.8.4, py-1.4.31, pluggy-0.3.1
rootdir: /Users/neil/git/saucelabs-sample-test-frameworks/Python-Pytest-Selenium, inifile:
plugins: xdist-1.13.1
gw0 [10] / gw1 [10] / gw2 [10] / gw3 [10] / gw4 [10] / gw5 [10] / gw6 [10] / gw7 [10] / gw8 [10] / gw9 [10]
scheduling tests via LoadScheduling
..........
================================================================================================== 10 passed in 42.58 seconds ==================================================================================================

Also works on Travis.yml (Linux) : https://travis-ci.org/saucelabs-sample-test-frameworks/Python-Pytest-Selenium

There is a probably an issue with the xdist version you installed or something within the local setup.
Are you running on Mac, Windows, or Linux?

@mehmetg
Copy link
Contributor

mehmetg commented Jan 24, 2017

@nhufinney: Please see: pytest-dev/pytest#437

@nhufinney
Copy link
Author

@mehmetg @ndmanvar Thank you so much. I will close this card.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants