pytest-dev / pytest-bdd

BDD library for the pytest runner
https://pytest-bdd.readthedocs.io/en/latest/
MIT License
1.31k stars 221 forks source link

Exception: gherkin-terminal-reporter is not compatible with 'xdist' plugin. #501

Closed ed-sparkes closed 2 years ago

ed-sparkes commented 2 years ago

Hi,

I am getting the error Exception: gherkin-terminal-reporter is not compatible with 'xdist' plugin.

I am on M1 Macbook running Python 3.9.5

Colleague on non apple silicon are not seeing this error.

Any thoughts?

Kind regards

youtux commented 2 years ago

Hi, can you provide more info? For example, it would be great to know how you invoke pytest, which options you use (both in the command line and from config files).

I suspect that you are using the gherkin-terminal-reporter option together with the pytest-xdist, which is not compatible (as the message says).

musicinmybrain commented 2 years ago

(Comment removed, as I don’t believe what I’m seeing is a problem with pytest-bdd.)

youtux commented 2 years ago

I use apple silicon as well, and I don't see this error. Would you able to provide a minimal example that triggers this error?

musicinmybrain commented 2 years ago

I use apple silicon as well, and I don't see this error. Would you able to provide a minimal example that triggers this error?

I think I commented on this issue without noticing I had followed a link to an issue on this project. I believe the problem I was encountering is downstream in jrnl.

GuyGrinwald commented 1 year ago

Hi, can you provide more info? For example, it would be great to know how you invoke pytest, which options you use (both in the command line and from config files).

I suspect that you are using the gherkin-terminal-reporter option together with the pytest-xdist, which is not compatible (as the message says).

@youtux are there any plans to support pytest-xdist with the gherkin-terminal-reporter or can you explain the motivation of why this isn't supported? I've also encountered a situation where pytest --numprocesses 2 -m my-tag --gherkin-terminal-reporter --gherkin-terminal-reporter-expanded -s --no-success-flaky-report --force-flaky --tb=native works well on ubuntu but not on macOS. I'm running, pytest==6.2.5, pytest-bdd==4.1.0, pytest-xdist==3.1.0

youtux commented 1 year ago

That's quite an old version of pytest-bdd. Anyway, I can't remember on top of my head why two options are not compatible