Comments (5)
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.
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.
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.
Can you say plugin version?
from allure-pytest.
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)
- Allure doesn't make a screenshot on a mobile device during the autotests with pyTest uiAutomator on Android HOT 8
- How to make allure plugin dependent on another plugin? HOT 2
- Can I see log trace of a passed test case, currently the debug trace is only for failed test cases HOT 2
- @Attachment for video having .webm is not attaching to the allure report in Ubuntu HOT 3
- seeing some os.error too many files.. any known issue here ? HOT 1
- I am looking to add a attachment in one of the tabs , not to a test case HOT 3
- Got ImportError: cannot import name 'unicodify' error after updating to version allure-pytest 2.0.0b2 HOT 31
- Unable to execute test cases specifying --allure_features or --allure stories attribute HOT 5
- Support tags: HOST, FEATURE and etc via LabelType class HOT 1
- Teardown function's logs not captured in allure report HOT 3
- Providing a responsive UI HOT 1
- Incompatible with pytest 3.2.0 HOT 1
- getting ValueError: option names set(['--alluredir']) already added" while trying to build a job on jenkins with allure-pytest plugin HOT 1
- Cyrillic symbols display like unicode in test's title HOT 1
- Multiple flow test xml-report counldn't be generated if one or more tests failed HOT 2
- Is it possible to rename test suits and test cases names? HOT 8
- why?How to solve this error? HOT 1
- Warnings during generating of allure report - RemovedInPytest4Warning HOT 3
- good!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from allure-pytest.