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

Cannot find allure commanline

Open tir38 opened this issue 4 years ago • 3 comments

I'm submitting a ...

  • [X] bug report
  • [ ] feature request
  • [ ] support request => Please do not submit support request here, see note at the top of this template.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

  1. followed readme to add basic config 2 $ ./gradlew app:allureServe
  2. Saw build error

`> Task :app:allureServe Cannot find allure commanline in /Users/user/project/.allure/allure-2.4.1

tir38 avatar Aug 27 '19 01:08 tir38

I had the same issue, even with the version <= 2.7.0. Had to specify the downloadLink in the allure task for it to work.

anemonetea avatar Mar 27 '20 22:03 anemonetea

@tir38 probably some problems with download of allure cli. You can run ./gradlew downlodAllure --info to get detailed info on why it happened.

vinogradoff avatar Mar 30 '20 09:03 vinogradoff

I followed the official document for a project that uses Gradle + Junit5 + Allure.

https://docs.qameta.io/allure/#_junit_5

This tells that all I should do is 2 steps:

  1. $ gradle clean test
  2. $ ./gradlew allureServe

When I did it, I got an error

$ ./gradlew allureServe

> Task :allureServe
Cannot find allure commanline in /Users/kazuakiurayama/github/materialstore/.allure/allure-2.15.0

I happened to find this issue, and I did

$ ./gradlew downloadAllure

Then the error is fixed. I could see the Report.


I think that the official document should be revised, should mension "./gradlew downloadAllure"; so that the case of Cannot find allure commandline is prevented.

kazurayam avatar Sep 23 '21 09:09 kazurayam