Coder Social home page Coder Social logo

Comments (8)

sseliverstov avatar sseliverstov commented on June 14, 2024

Try this, please

pytest ./tests/e2e --alluredir=./report --allure-features=Setup

from allure-python.

OlegKuzovkov avatar OlegKuzovkov commented on June 14, 2024

I have some strange internal import problems with command above.

from allure-python.

sseliverstov avatar sseliverstov commented on June 14, 2024

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.

OlegKuzovkov avatar OlegKuzovkov commented on June 14, 2024
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.

sseliverstov avatar sseliverstov commented on June 14, 2024

Where its fails? Hooks? Fixtures? Steps?

from allure-python.

sseliverstov avatar sseliverstov commented on June 14, 2024

ping =)

from allure-python.

OlegKuzovkov avatar OlegKuzovkov commented on June 14, 2024

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.

sseliverstov avatar sseliverstov commented on June 14, 2024

Possibly fixed in 2.1.0.b1. Reopen please if still reproduced

from allure-python.

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.