allure2 icon indicating copy to clipboard operation
allure2 copied to clipboard

Inconsistent Allure Report Directory Naming on macOS: Trailing Double Quote Issue

Open theAnand17 opened this issue 1 year ago • 2 comments

Describe the Bug

When generating Allure reports using the Allure Maven Plugin, the index.html file is correctly placed in the specified directory on Windows. However, on macOS, the same process results in the creation of a directory named with a trailing double quote ("), which contains the index.html file.

Steps to Reproduce

  1. Set up a Maven project with the following configurations:
    • Java Version: 23
    • Allure Version: 2.29.0
    • Allure Maven Plugin Version: 2.15.2
  2. Execute the build process on a macOS machine running macOS 15.1.
  3. Observe the creation of the allure-maven-plugin" directory (note the trailing double quote) containing the index.html file.

Expected Behaviour

The index.html file should be generated in the specified directory (target/site/allure-maven-plugin) without creating any unintended directories, regardless of the operating system.

Screenshots or Additional Context

On macOS, a directory named allure-maven-plugin" (with a trailing double quote) is created, containing the index.html file.

Environment:

  • Java Version: 23
  • Operating Systems:
    • Windows 11 23H2
    • macOS 15.1
  • Allure Version: 2.29.0
  • Allure Maven Plugin Version: 2.15.2

Console Output:

[INFO] Allure installation directory /Users/username/Desktop/repo/reponame/.allure [INFO] Try to finding out allure 2.30.0 [INFO] Generate Allure report (report) with version 2.30.0 [INFO] Generate Allure report to /Users/username/Desktop/repo/reponame/target/site/allure-maven-plugin [INFO] Found results directory /Users/username/Desktop/repo/reponame/target/allure-results [INFO] Can't find information about categories [INFO] Generate report to /Users/username/Desktop/repo/reponame/target/site/allure-maven-plugin Report successfully generated to "/Users/username/Desktop/repo/reponame/target/site/allure-maven-plugin" [INFO] Report generated successfully.

Additional Context:

This issue appears to be related to how file paths are handled differently between Windows and macOS. Ensuring consistent path handling across platforms is crucial for cross-platform compatibility.

image

What Language are you using?

Java

What Framework/Allure Integration you are using?

allure-cucumber7-jvm

What version of Allure Integration you are using?

2.29.0

What version of Allure Report you are using?

2.30.0

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

theAnand17 avatar Nov 20 '24 11:11 theAnand17

Could you please specify the part of the POM.xml where allure-maven-plugin is configured?

baev avatar Nov 20 '24 12:11 baev

<plugin> <groupId>io.qameta.allure</groupId> <artifactId>allure-maven</artifactId> <version>2.15.2</version> </plugin>

This is what I've added under reporting: <reporting> <excludeDefaults>true</excludeDefaults> <plugins> <plugin> <groupId>io.qameta.allure</groupId> <artifactId>allure-maven</artifactId> <version>2.15.2</version> <configuration> <reportVersion>${allure.version}</reportVersion> </configuration> </plugin> </plugins> </reporting>

theAnand17 avatar Nov 26 '24 06:11 theAnand17