Skip to content

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

@theAnand17

Description

@theAnand17

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions