-
-
Notifications
You must be signed in to change notification settings - Fork 513
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
Problem producing aggregate reports for a microservices project #1443
Comments
Afterthought: If the requirements directory structure was 'materialised' into the test output during the test phaes, then the aggregation phase would not have to care about the location of |
That would only work if you don't care about feature definitions or other higher level documentation, which cannot be stored with the tests. |
Oh, I was visualising test requirements files being copied into a fixed |
That’s not a bad idea, for Cucumber at least. |
…rvices project - providing transparency as to which properties are being loaded
…rvices project - throw exception if SERENITY_REQUIREMENTS_DIR_MANDATORY is true and SERENITY_REQUIREMENTS_DIR is not set
On my client's microservices project, I'm trying to get the most out of
Functional Coverage Overview
part of Serenity 2.x. The current challenge is finding a configuration setup that will allow a user to drill down from the index page into the areas of interest - and ideally to have theSpecifications > Scenarios
populated from the requirements. This is proving hard to achieve however, as both the test run and the aggregation stage present their own issues, for the reasons explained in the following sections.Firstly, the project structure, being a monorepo, is laid out as follows:
(1) Problem at the microservice test phase
Each microservice has its own acceptance test suite with a
serenity.conf
as follows:The only way we can get
Scenario details
and other document specific content to populate correctly during the test phase is ifserenity.outputDirectory
is set to an absolute path by means of${user.dir}
. Usingsrc/test/resources/cucumber
doesn't work as the test suite is run from the monorepouniverse
root directory.(2) Problem at the aggregation phase
Whilst the aggregation does produce test results (as microservices do produce output to a common location due to
serenity.outputDirectory
being the same), noFunctional Coverage Overview
is rendered because there isn't a single value that can be supplied forserenity.requirements.dir
that will allow requirements for all microservices to be resolved into a single tree structure. If nothing, or the root directoryuniverse
is supplied, then this causes the aggregation to hang indefinitely due to #1252. But even if this didn't hang, the structure would still not look right or map to the test results as the individual microservices have theirserenity.requirements.dir
at arbitrary points in the monorepo directory structure.Can you think of something we can do on our project to overcome this problem as we are having quite a problem selling the new look reports to the users as they feel they are not quite as easy to navigate any more (hence our release of 2.x is blocked at the moment).
The text was updated successfully, but these errors were encountered: