allure-gradle
allure-gradle copied to clipboard
Cannot find allure commanline
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
- followed readme to add basic config
2
$ ./gradlew app:allureServe
- Saw build error
`> Task :app:allureServe Cannot find allure commanline in /Users/user/project/.allure/allure-2.4.1
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.
@tir38
probably some problems with download of allure cli.
You can run ./gradlew downlodAllure --info
to get detailed info on why it happened.
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:
-
$ gradle clean test
-
$ ./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.