Skip to content

Failed report on version 2.11.0 #94

@AenEnlil

Description

@AenEnlil

Plugins:
pytest-xdist

Report failed when TESTOMATIO_SHARED used with pytest-xdist

Run command:


        # Set Testomatio flag if token is provided
        TESTOMATIO_FLAG=""
        if [ -n "$${TESTOMATIO}" ]; then
          echo "Testomatio reporting enabled"
          echo "Title: $${TESTOMATIO_TITLE}"
          TESTOMATIO_FLAG="--testomatio report"
          # Enable shared run internally to merge parallel and sequential results
          export TESTOMATIO_SHARED_RUN=1
        fi
        
        echo "Running parallel tests..."
        TESTOMATIO_PROCEED=1 pytest -m "$${MARKERS} and not no_parallel" \
          -n $${PARALLEL_WORKERS:-4} --alluredir=allure-results $${TESTOMATIO_FLAG} -vv || PARALLEL_EXIT=$$?

Error:

INTERNALERROR> E               File "/usr/local/lib/python3.11/site-packages/pytestomatio/main.py", line 154, in pytest_collection_modifyitems                        
  INTERNALERROR> E                 run_details = pytest.testomatio.connector.update_test_run(**run.to_dict())                                                           
  INTERNALERROR> E                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                           
  INTERNALERROR> E             TypeError: Connector.update_test_run() missing 1 required positional argument: 'id'                                                      
  INTERNALERROR> E           assert False

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions