Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
theAnand17 opened this issue Nov 20, 2024 · 2 comments
Open
1 task done
Labels
triage type:bug Something isn't working

Comments

@theAnand17
Copy link

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
@theAnand17 theAnand17 added triage type:bug Something isn't working labels Nov 20, 2024
@baev
Copy link
Member

baev commented Nov 20, 2024

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

@theAnand17
Copy link
Author

<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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants