Skip to content

Classification files ignored if not below jsonReportDirectory #426

@KLBonn

Description

@KLBonn

Describe your use-case which is not covered by existing documentation.

We wanted to use the classificationFilePattern argument in order to supply additional metadata to be displayed in the report.
However our .properties file kept getting ignored by cucumber-reporting plugin.

It took me quite some code-reading to discover why:
In CucumberReportPublisher#480 you save available property files below inputReportDirectory to directoryCache, so they can be evaluated later on.
However inputReportDirectory is based on plugin argument/setting jsonReportDirectory.

In our case jsonReportDirectory is set to Maven target subfolder, while the classification property file is residing in workspace root, so because of the above it never was included for the cache and subsequent processing. That was quite a surprise.

Could you add some appropriate advice in documentation, that (contrary to naming) jsonReportDirectory is not only effective for json reports, but also for classificationFilePattern parameter?

Reference any relevant documentation, other materials or issues/pull requests that can be used for inspiration.

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions