79077861

Date: 2024-10-11 10:48:52
Score: 0.5
Natty:
Report link

On windows machine, adding .bat worked for me.

String cmd = "allure.bat generate allure-results -o E:\project\target\reports\loginReport --clean"; Process process = Runtime.getRuntime().exec(cmd); process.waitFor()

Be sure to have specified the bin directory of allure in your PATH sys env variables (where the .bat file is located). You can locate it typing in cmd: "where allure.bat"

For me path was C:\Program Files\allure-2.30.0\bin

Reasons:
  • Whitelisted phrase (-1): worked for me
  • No code block (0.5):
  • Low reputation (1):
Posted by: Alessandro Bertelli