mkorpela / pabot

Parallel executor for Robot Framework test cases.
https://pabot.org
Apache License 2.0
476 stars 152 forks source link

fix: exclude deprecated options based on RF version #563

Closed reubenmiller closed 10 months ago

reubenmiller commented 10 months ago

Resolving deprecation notices (see https://github.com/mkorpela/pabot/issues/539) when using pabot with robotframework (RF) 6.1.

With RF 6.1 it includes more deprecation notices (even for some features that have been deprecated since RF 5.0).

Belows shows example of the deprecation notices as printed on the console prior to this PR.

ArgumentParser option 'auto_pythonpath' is deprecated since Robot Framework 5.0

tests/test_pabot.py: 56 warnings
  /home/runner/work/pabot/pabot/.tox/py/lib/python3.11/site-packages/robot/utils/argumentparser.py:80: UserWarning: ArgumentParser option 'auto_pythonpath' is deprecated since Robot Framework 5.0.
    warnings.warn("ArgumentParser option 'auto_pythonpath' is deprecated "

UserWarning: 'TestSuiteBuilder' argument 'included_suites' is deprecated and has no effect

tests/test_pabotsuitenames_io.py: 1 warning
  /home/runner/work/pabot/pabot/.tox/py/lib/python3.11/site-packages/robot/running/builder/builders.py:112: UserWarning: 'TestSuiteBuilder' argument 'included_suites' is deprecated and has no effect. Use the new 'included_files' argument or filter the created suite instead.
    warnings.warn("'TestSuiteBuilder' argument 'included_suites' is deprecated "

Notes