Search code examples
pytestallure

allure: command not found on linux


I am trying to integrate allure report generation utility with py.test framework. I have installed allure on linux with following command:

$ wget https://github.com/allure-framework/allure-core/releases/download/allure-core-1.5.2/allure-commandline.tar.gz
$ tar -xvf allure-commandline.tar.gz

$ cd bin/
$ ls
allure  allure.bat

But when I try to run allure command, I see following error:

$ allure
allure: Command not found.

Can someone help me fixing this issue?


Solution

  • To run an executable (which is any file with executable permission); you just specify it by its path: path/to/allure/bin/allure or './allure'.

    Also you can add bin folder to your PATH variable, and then simply run allure.

    See the following question for more details: How to run a shell script on a Unix console or Mac terminal?