Skip to content
Advertisement

Fail to generate allure-results directory based on JUnit 4

I failed to generate the directory allure-results in my project. I have tried many methods from google(create src/test/resources/allure.properties, set <resultsDirectory>${project.build.directory}/allure-results</resultsDirectory> in pom.xml, etc.), but all setting seems not to take effect. I also failed to redirect the result to other directories. It always said “[ERROR] Directory <project_path>/target/allure-results not found”.

My command to generate report is

JavaScript

My pom.xml is like:

JavaScript

Advertisement

Answer

In my project, I just add this dependency to fix this issue:

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement