serenity-bdd / serenity-core

Serenity BDD is a test automation library designed to make writing automated acceptance tests easier, and more fun.
http://serenity-bdd.info
Other
720 stars 519 forks source link

Feature Request: Searching test results should match on the steps #3438

Open jfstephe opened 6 months ago

jfstephe commented 6 months ago

What's the Problem You're Trying to Solve?

Team members want to filter the features by the steps/data and not just the feature/scenario description. This is not possible in the current offering.

Proposed Solution

The test steps are already available in the cucumber test results and in the Serenity BDD Reporter, this "just" needs to be included as terms to search on, in the filter.

Happy to make a PR if you point me where to go.

Alternative Solutions

N/A

Implementation Support

wakaleo commented 6 months ago

I would welcome a PR to do this. Have a look at the freemarker template files for these reports (the filtering uses a Javascript library if I recall correctly so should be relatively straightforward to extend).

jfstephe commented 6 months ago

Thanks @wakaleo. I'm looking around it now and I think I'm getting somewhere with the code but I can't get it to build.

I'm using VSC and it fails with:

> Task :serenity-model:compileJava FAILED

FAILURE: Build failed with an exception

Screenshot:

image

Versions of everything I can think of that may be relevant:

Ubuntu: 20.04 Java: openjdk 11.0.22 2024-01-16 OpenJDK Runtime Environment (build 11.0.22+7-post-Ubuntu-0ubuntu220.04.1) OpenJDK 64-Bit Server VM (build 11.0.22+7-post-Ubuntu-0ubuntu220.04.1, mixed mode, sharing) mvn: Apache Maven 3.6.3 Kotlin: v1.9.23

I followed the CONTRIBUTING.md but I feel like I'm missing something obvious (it's been a while since I've done any java). When I run "mvn clean install" in the serenity-model folder it works, but wgradle doesn't like it.

Any ideas?

jfstephe commented 6 months ago

Thinking about it, could it be that I'm not using intelliJ?

jfstephe commented 6 months ago

Spent an hour trying to add in the missing gradle dependencies and it's killing me a little. Can improvements be made to document the expected development environment when contributing? I'm falling ATM but it's not a pit of success...

wakaleo commented 6 months ago

The Serenity build uses Maven, we dropped Gradle a while back when JCenter was shut down

jfstephe commented 6 months ago

@wakaleo - then the CONTRIBUTING.md really needs updating as it's talking about wgradle and there's all the gradle files still around :-(