allure-python icon indicating copy to clipboard operation
allure-python copied to clipboard

Not possible to generate a report in pytest on Ubuntu 18.04 LTS

Open SviatoslavBordovski opened this issue 4 years ago • 13 comments

Hi! My commands are:

  1. py.test --browser opera -v --alluredir=PytestFrameworkProject/reports/allure-reports
  2. allure serve /reports/allure-reports

Python version is 3.6.9.

These are correct according to the documentation [https://pypi.org/project/allure-pytest/]

Can't generate report via CLI. Any suggestions?

bug_allure

SviatoslavBordovski avatar Jun 10 '21 20:06 SviatoslavBordovski

Hello?

SviatoslavBordovski avatar Jun 15 '21 14:06 SviatoslavBordovski

Where did you get allure? image This part is weird for me, looks like it linked to wrong binary file Also image You using absolute path here? It's not a mistake? May be you want to use relative path from your current folder with . before first /

rad96 avatar Jul 12 '21 16:07 rad96

@rad96 It is not mistake, I have used absolute path locally many times before which was working perfectly fine.

I have used this command to install allure https://pypi.org/project/allure-pytest/

SviatoslavBordovski avatar Jul 13 '21 08:07 SviatoslavBordovski

I have used this command to install allure https://pypi.org/project/allure-pytest/

You installed pytest adapter For allure report generation you need to install allure from its repo https://github.com/allure-framework/allure2/releases

Then, if you add allure binary into your path, you can exec allure serve or allure generate commands

rad96 avatar Jul 13 '21 11:07 rad96

I have used this command to install allure https://pypi.org/project/allure-pytest/

You installed pytest adapter For allure report generation you need to install allure from its repo https://github.com/allure-framework/allure2/releases

Then, if you add allure binary into your path, you can exec allure serve or allure generate commands

pytest adapter could be installed with this command https://pypi.org/project/pytest-allure-adaptor/ which I have not used

So not the case for me

sviatoslav-bordovski avatar Jul 14 '21 10:07 sviatoslav-bordovski

Which command is correct then?

sviatoslav-bordovski avatar Jul 14 '21 10:07 sviatoslav-bordovski

pytest adapter could be installed with this command https://pypi.org/project/pytest-allure-adaptor/ which I have not used

Thats deprecated one You installed correct one for pytest, but you also need to install allure itself, not only report plugin for pytest I provided link to it earlier

rad96 avatar Jul 14 '21 10:07 rad96

it is installed, how should I add allure binary into your path?

sviatoslav-bordovski avatar Jul 14 '21 13:07 sviatoslav-bordovski

There is nothing about binary in doc here https://docs.qameta.io/allure/#_linux

sviatoslav-bordovski avatar Jul 14 '21 13:07 sviatoslav-bordovski

it is installed, how should I add allure binary into your path?

Can you just copy paste that quote into google?

There is nothing about binary in doc here https://docs.qameta.io/allure/#_linux

Sometimes something from docs is getting old and deprecated, nothing to do about that

rad96 avatar Jul 14 '21 13:07 rad96

Can you just copy paste that quote into google?

yes, I did which did not help since I do not understand which path is correct, so this could take forever and should be covered by the docs

sviatoslav-bordovski avatar Jul 14 '21 13:07 sviatoslav-bordovski

  • Download last one https://github.com/allure-framework/allure2/releases for your system
  • Install/unpack it
  • If unpack option choosen add allure folder into your path
  • call allure --version and check version is latest one

rad96 avatar Jul 14 '21 13:07 rad96

that should work via CLI with correct commands since all the automation mostly is running on Linux machines for which official doc is not relevant, no words on github readme as well

sviatoslav-bordovski avatar Jul 14 '21 15:07 sviatoslav-bordovski

Hi!

This is not a bug report of a feature request. It's better to ask such questions on https://stackoverflow.com/ I'm closing it now because it is old and doesn't seem to be related to allure python integrations.

delatrie avatar Dec 01 '22 14:12 delatrie