Code Monkey home page Code Monkey logo

Comments (5)

sseliverstov avatar sseliverstov commented on August 18, 2024

New plugin is not compatible with old version. It use same entry points and module names. Please uninstall old plugin and try again.

from allure-pytest.

TimurNurlygayanov avatar TimurNurlygayanov commented on August 18, 2024

sseliverstov, it was a new installation with the latest version of the plugin.

The root of the issue not in different versions of the plugin, but in two different test executions which use the same folder for allure reports.

from allure-pytest.

luarvik-od avatar luarvik-od commented on August 18, 2024

Have faced with the same problem.
C:\Users\igor.k\AppData\Local\Programs\Python\Python36\python.exe "C:\Program Files\JetBrains\PyCharm Community Edition 2017.1.2\helpers\pycharm_jb_pytest_runner.py" --path C:/Users/igor.k/.PyCharmCE2017.1/snaapy/snaapy-ui-tests/Tests/Tests_customer_dashboard
Testing started at 1:31 PM ...
Launching py.test with arguments C:/Users/igor.k/.PyCharmCE2017.1/snaapy/snaapy-ui-tests/Tests/Tests_customer_dashboard in C:\Users\igor.k.PyCharmCE2017.1\snaapy\snaapy-ui-tests\Tests\Tests_customer_dashboard
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm Community Edition 2017.1.2\helpers\pycharm_jb_pytest_runner.py", line 27, in
pytest.main(sys.argv[1:], plugins_to_load)
File "C:\Users\igor.k\AppData\Local\Programs\Python\Python36\lib\site-packages_pytest\config.py", line 49, in main
config = _prepareconfig(args, plugins)
File "C:\Users\igor.k\AppData\Local\Programs\Python\Python36\lib\site-packages_pytest\config.py", line 158, in _prepareconfig
pluginmanager=pluginmanager, args=args)
File "C:\Users\igor.k\AppData\Local\Programs\Python\Python36\lib\site-packages_pytest\vendored_packages\pluggy.py", line 745, in call
return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
File "C:\Users\igor.k\AppData\Local\Programs\Python\Python36\lib\site-packages_pytest\vendored_packages\pluggy.py", line 339, in _hookexec
return self._inner_hookexec(hook, methods, kwargs)
File "C:\Users\igor.k\AppData\Local\Programs\Python\Python36\lib\site-packages_pytest\vendored_packages\pluggy.py", line 334, in
_MultiCall(methods, kwargs, hook.spec_opts).execute()
File "C:\Users\igor.k\AppData\Local\Programs\Python\Python36\lib\site-packages_pytest\vendored_packages\pluggy.py", line 613, in execute
return _wrapped_call(hook_impl.function(*args), self.execute)
File "C:\Users\igor.k\AppData\Local\Programs\Python\Python36\lib\site-packages_pytest\vendored_packages\pluggy.py", line 250, in _wrapped_call
wrap_controller.send(call_outcome)
File "C:\Users\igor.k\AppData\Local\Programs\Python\Python36\lib\site-packages_pytest\helpconfig.py", line 34, in pytest_cmdline_parse
config = outcome.get_result()
File "C:\Users\igor.k\AppData\Local\Programs\Python\Python36\lib\site-packages_pytest\vendored_packages\pluggy.py", line 279, in get_result
raise ex[1].with_traceback(ex[2])
File "C:\Users\igor.k\AppData\Local\Programs\Python\Python36\lib\site-packages_pytest\vendored_packages\pluggy.py", line 265, in init
self.result = func()
File "C:\Users\igor.k\AppData\Local\Programs\Python\Python36\lib\site-packages_pytest\vendored_packages\pluggy.py", line 614, in execute
res = hook_impl.function(*args)
File "C:\Users\igor.k\AppData\Local\Programs\Python\Python36\lib\site-packages_pytest\config.py", line 928, in pytest_cmdline_parse
self.parse(args)
File "C:\Users\igor.k\AppData\Local\Programs\Python\Python36\lib\site-packages_pytest\config.py", line 1086, in parse
self._preparse(args, addopts=addopts)
File "C:\Users\igor.k\AppData\Local\Programs\Python\Python36\lib\site-packages_pytest\config.py", line 1048, in _preparse
self.pluginmanager.load_setuptools_entrypoints(entrypoint_name)
File "C:\Users\igor.k\AppData\Local\Programs\Python\Python36\lib\site-packages_pytest\vendored_packages\pluggy.py", line 516, in load_setuptools_entrypoints
self.register(plugin, name=ep.name)
File "C:\Users\igor.k\AppData\Local\Programs\Python\Python36\lib\site-packages_pytest\config.py", line 252, in register
ret = super(PytestPluginManager, self).register(plugin, name)
File "C:\Users\igor.k\AppData\Local\Programs\Python\Python36\lib\site-packages_pytest\vendored_packages\pluggy.py", line 351, in register
(plugin_name, plugin, self._name2plugin))
ValueError: Plugin already registered: allure_pytest=<module 'allure.pytest_plugin' from 'C:\Users\igor.k\AppData\Local\Programs\Python\Python36\lib\site-packages\allure\pytest_plugin.py'>
{'2584530579808': <_pytest.config.PytestPluginManager object at 0x00000259C206F160>, 'pytestconfig': <_pytest.config.Config object at 0x00000259C20D6358>, 'mark': <module '_pytest.mark' from 'C:\Users\igor.k\AppData\Local\Programs\Python\Python36\lib\site-packages\_pytest\mark.py'>, 'main': <module '_pytest.main' from 'C:\Users\igor.k\AppData\Local\Programs\Python\Python36\lib\site-packages\_pytest\main.py'>, 'terminal': <module '_pytest.terminal' from 'C:\Users\igor.k\AppData\Local\Programs\Python\Python36\lib\site-packages\_pytest\terminal.py'>, 'runner': <module '_pytest.runner' from 'C:\Users\igor.k\AppData\Local\Programs\Python\Python36\lib\site-packages\_pytest\runner.py'>, 'python': <module '_pytest.python' from 'C:\Users\igor.k\AppData\Local\Programs\Python\Python36\lib\site-packages\_pytest\python.py'>, 'fixtures': <module '_pytest.fixtures' from 'C:\Users\igor.k\AppData\Local\Programs\Python\Python36\lib\site-packages\_pytest\fixtures.py'>, 'debugging': <module '_pytest.debugging' from 'C:\Users\igor.k\AppData\Local\Programs\Python\Python36\lib\site-packages\_pytest\debugging.py'>, 'unittest': <module '_pytest.unittest' from 'C:\Users\igor.k\AppData\Local\Programs\Python\Python36\lib\site-packages\_pytest\unittest.py'>, 'capture': <module '_pytest.capture' from 'C:\Users\igor.k\AppData\Local\Programs\Python\Python36\lib\site-packages\_pytest\capture.py'>, 'skipping': <module '_pytest.skipping' from 'C:\Users\igor.k\AppData\Local\Programs\Python\Python36\lib\site-packages\_pytest\skipping.py'>, 'tmpdir': <module '_pytest.tmpdir' from 'C:\Users\igor.k\AppData\Local\Programs\Python\Python36\lib\site-packages\_pytest\tmpdir.py'>, 'monkeypatch': <module '_pytest.monkeypatch' from 'C:\Users\igor.k\AppData\Local\Programs\Python\Python36\lib\site-packages\_pytest\monkeypatch.py'>, 'recwarn': <module '_pytest.recwarn' from 'C:\Users\igor.k\AppData\Local\Programs\Python\Python36\lib\site-packages\_pytest\recwarn.py'>, 'pastebin': <module '_pytest.pastebin' from 'C:\Users\igor.k\AppData\Local\Programs\Python\Python36\lib\site-packages\_pytest\pastebin.py'>, 'helpconfig': <module '_pytest.helpconfig' from 'C:\Users\igor.k\AppData\Local\Programs\Python\Python36\lib\site-packages\_pytest\helpconfig.py'>, 'nose': <module '_pytest.nose' from 'C:\Users\igor.k\AppData\Local\Programs\Python\Python36\lib\site-packages\_pytest\nose.py'>, 'assertion': <module '_pytest.assertion' from 'C:\Users\igor.k\AppData\Local\Programs\Python\Python36\lib\site-packages\_pytest\assertion\init.py'>, 'junitxml': <module '_pytest.junitxml' from 'C:\Users\igor.k\AppData\Local\Programs\Python\Python36\lib\site-packages\_pytest\junitxml.py'>, 'resultlog': <module '_pytest.resultlog' from 'C:\Users\igor.k\AppData\Local\Programs\Python\Python36\lib\site-packages\_pytest\resultlog.py'>, 'doctest': <module '_pytest.doctest' from 'C:\Users\igor.k\AppData\Local\Programs\Python\Python36\lib\site-packages\_pytest\doctest.py'>, 'cacheprovider': <module '_pytest.cacheprovider' from 'C:\Users\igor.k\AppData\Local\Programs\Python\Python36\lib\site-packages\_pytest\cacheprovider.py'>, 'freeze_support': <module '_pytest.freeze_support' from 'C:\Users\igor.k\AppData\Local\Programs\Python\Python36\lib\site-packages\_pytest\freeze_support.py'>, 'setuponly': <module '_pytest.setuponly' from 'C:\Users\igor.k\AppData\Local\Programs\Python\Python36\lib\site-packages\_pytest\setuponly.py'>, 'setupplan': <module '_pytest.setupplan' from 'C:\Users\igor.k\AppData\Local\Programs\Python\Python36\lib\site-packages\_pytest\setupplan.py'>, 'warnings': <module '_pytest.warnings' from 'C:\Users\igor.k\AppData\Local\Programs\Python\Python36\lib\site-packages\_pytest\warnings.py'>, 'teamcity.pytest_plugin': <module 'teamcity.pytest_plugin' from 'C:\Program Files\JetBrains\PyCharm Community Edition 2017.1.2\helpers\pycharm\teamcity\pytest_plugin.py'>, 'allure_adaptor': <module 'allure.pytest_plugin' from 'C:\Users\igor.k\AppData\Local\Programs\Python\Python36\lib\site-packages\allure\pytest_plugin.py'>}

Process finished with exit code 1
Empty test suite.

Please, advice

from allure-pytest.

sseliverstov avatar sseliverstov commented on August 18, 2024

Can you say plugin version?

from allure-pytest.

sseliverstov avatar sseliverstov commented on August 18, 2024

It is happens when are both versions of allure plugin installed. Uninstall all allure plugins and allure-python-commons, then install one of your prefer version. Sometimes pip don't deletes files from .../site-packages/. If this issue stay actual, please, delete allure files from .../site-packages/ manually.

from allure-pytest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.