Comments (8)
Try this, please
pytest ./tests/e2e --alluredir=./report --allure-features=Setup
from allure-python.
I have some strange internal import problems with command above.
from allure-python.
maybe check installation
MacBook-Pro-Stas:allure2 stasseliverstov$ python
Python 2.7.13 (default, Feb 20 2017, 21:56:15)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from allure_pytest import listener
>>> dir(listener)
['AllureListener', 'AllureLogger', 'FinalizerSpy', 'ItemCache', 'Label', 'Link', 'Parameter', 'Status', 'StatusDetails', 'TestAfterResult', 'TestBeforeResult', 'TestResult', 'TestResultContainer', 'TestStepResult', '__builtins__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '_test_fixtures', 'allure_full_name', 'allure_labels', 'allure_links', 'allure_package', 'allure_parameters', 'md5', 'now', 'pytest', 'uuid4']
>>>
from allure-python.
Spares-MacBook-Pro:thirdshelf-qa-framework olehkuzovkov$ python3
Python 3.5.1 (v3.5.1:37a07cee5969, Dec 5 2015, 21:12:44)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from allure_pytest import listener
>>> dir(listener)
['AllureListener', 'AllureLogger', 'FinalizerSpy', 'ItemCache', 'Label', 'Link', 'Parameter', 'Status', 'StatusDetails', 'TestAfterResult', 'TestBeforeResult', 'TestResult', 'TestResultContainer', 'TestStepResult', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__', '_test_fixtures', 'allure_full_name', 'allure_labels', 'allure_links', 'allure_package', 'allure_parameters', 'md5', 'now', 'pytest', 'uuid4']
>>>
from allure-python.
Where its fails? Hooks? Fixtures? Steps?
from allure-python.
ping =)
from allure-python.
Before running test using pytest command, we need to add project root to the PYTHONPATH. IDEA does this automatically for you, but when you start your tests from cmd - you have to take care about this by yourself. I'm trying to find a way how to do this right now. Will get back you once I found a workaround.
from allure-python.
Possibly fixed in 2.1.0.b1. Reopen please if still reproduced
from allure-python.
Related Issues (20)
- [Feature] Pytest - Rename @allure.testcase decorator to @allure.tms HOT 1
- Suites view - failed Playwright pytest tests are not shown under their corresponding suite/sub-suite HOT 1
- Package view for behave tests - The class label isn't displayed in the tree
- Allow users to actually take advantage of passed categories via message regex.
- Report for skip is a child for unexecuted fixtures.
- [Feature request] Make `StepContext` available in public API for annotations
- [BUG] Latest pytest release (8.1.0) breaks allure_listener plugin HOT 7
- Testcase history tab showing same date time for different runs
- Testcase history tab showing same date time for different runs HOT 1
- Allure-behave 2.13.4 causes error with formatter in Python Behave HOT 4
- Error importing plugin "allure.pytest_plugin": No module named 'allure.pytest_plugin'; 'allure' is not a package HOT 1
- Allure-pytest: support hiding/masking a step's parameter
- ansi escape sequences formatting HOT 1
- pytest-xdist run tests with --clean-alluredir may fail when faker installed.
- Not implemented type for Arrow list to pandas: fixed_size_binary[16]
- Excluding allure-labels in pytest run HOT 1
- to prevent saving marks with parameters as labels → tag
- [Robot Framework Browser/Playwright] - The usage of parentSuite and suite metadata add the test 4 times in the report
- use loguru's stderr or stdout cant generate log in allure report
- Feature request: Generate "unknown" test results during pytest collection (allure-pytest)
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-python.