serenity-bdd / serenity-cucumber

Cucumber integration for the Serenity BDD Reporting library
Other
78 stars 74 forks source link

Requirement Tab is empty #258

Open amamgaq5 opened 3 years ago

amamgaq5 commented 3 years ago

Hi I am new to Serenity with Cucumber and working on a project.

We have features file and other code related to serenity/cucumber in below directories

src/bdd/java src/bdd/resources

We have serenity.conf in src/bdd/resources directory. I am trying to add readme.md under src/bdd/reources/features but somehow its not getting picked and requirement tab is empty.

Any suggestions how I can get the Requirement tab populated

wakaleo commented 3 years ago

Use the Maven conventions:

amamgaq5 commented 3 years ago

Actually we don't want to use src/test/resources location. Is there a way we can override the requirements location in serenity.conf

wakaleo commented 3 years ago

You can try serenity.requirements.dir but I would advise against it; I don't know if it is still supported.

amamgaq5 commented 3 years ago

Well it did not work thanks though for your replies. One more question is there a gradle project which I can use as reference to customize the serenity reports.

wakaleo commented 3 years ago

Gradle has other issues with customising properties. I would recommend sticking to the conventions.

amamgaq5 commented 3 years ago

That's an issue as my company uses gradle .

On Tue, Apr 20, 2021, 8:48 AM John Ferguson Smart @.***> wrote:

Gradle has other issues with customising properties. I would recommend sticking to the conventions.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/serenity-bdd/serenity-cucumber/issues/258#issuecomment-823288994, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASHTKBMAK6SBWOUGZNKBHULTJWA37ANCNFSM43DROQAQ .

wakaleo commented 3 years ago

Is there a reason you can't use the standard conventions?

amamgaq5 commented 3 years ago

@wakaleo If you are talking about keeping it under src/test/resources..we had it under that folder initially but then our QC team and Trident want us to seperate Serenity BDD related code under src/bdd directory.

Well but I think setting serenity.test.root will pick requirements from our directory.

But now I am trying to see if by any chance in gradle we can customize the reports.

Thanks