Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

Requirement Tab is empty #258

Open
amamgaq5 opened this issue Apr 17, 2021 · 8 comments
Open

Requirement Tab is empty #258

amamgaq5 opened this issue Apr 17, 2021 · 8 comments

Comments

@amamgaq5
Copy link

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
Copy link
Member

wakaleo commented Apr 18, 2021

Use the Maven conventions:

  • src/test/java for test-related code
  • src/test/resources/features for feature files

@amamgaq5
Copy link
Author

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
Copy link
Member

wakaleo commented Apr 18, 2021

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

@amamgaq5
Copy link
Author

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
Copy link
Member

wakaleo commented Apr 20, 2021

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

@amamgaq5
Copy link
Author

amamgaq5 commented Apr 20, 2021 via email

@wakaleo
Copy link
Member

wakaleo commented Apr 20, 2021

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

@amamgaq5
Copy link
Author

@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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants