Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyfrc tests don't work with pytest-xdist #212

Open
auscompgeek opened this issue Jan 1, 2023 · 1 comment
Open

pyfrc tests don't work with pytest-xdist #212

auscompgeek opened this issue Jan 1, 2023 · 1 comment
Labels

Comments

@auscompgeek
Copy link
Member

auscompgeek commented Jan 1, 2023

Problem description

Running tests with the pytest-xdist plugin fails with errors:

[gw0] darwin -- Python 3.10.9 /.../bin/python3
file ~/dev/frc/robotpy/pyfrc/pyfrc/tests/basic.py, line 35
  @pytest.mark.filterwarnings("ignore")
  def test_disabled(control: "TestController", robot):
E       fixture 'control' not found
>       available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, reraise, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, worker_id
>       use 'pytest --fixtures [testpath]' for help on them.

~/dev/frc/robotpy/pyfrc/pyfrc/tests/basic.py:35

Operating System

Windows, MacOS, Linux

Installed Python Packages

pyfrc                    2023.0.0b5.dev2+g0d04aaa6126e.d20221231
pytest                   7.2.0
pytest-forked            1.4.0
pytest-pretty            0.0.1
pytest-randomly          3.12.0
pytest-reraise           2.1.2
pytest-xdist             3.1.0

Reproducible example code

./robot.py test -- -n 2
@auscompgeek auscompgeek added the bug label Jan 1, 2023
@virtuald
Copy link
Member

virtuald commented Jan 1, 2023

I wouldn't expect this to work.

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

No branches or pull requests

2 participants