react-components icon indicating copy to clipboard operation
react-components copied to clipboard

html-formatter: Users encounter file names instead of feature names

Open cowang opened this issue 3 years ago • 2 comments

Users are looking for features to review on the test-results web page, but the page is a list of file names to click on. These file names can be lengthy and are mangled if any spaces or special characters occur in them, making it difficult to find the specific feature that programmers want to review, much less non-technical users. This is especially a problem when the path to the feature files is long.

Ideally, feature names would be listed instead of file names, or before them.

If the programmers/testers use readable and complete file names, alternatives would be to list the file name before the path or highlight the file name so that it can be found over on the right-hand side.

ADDED INFO

You can see an example of a web page that is currently produced at https://truej-lang.org/TestResults/ReadyFeatures.html

It is important to preserve the ability to order the list of features. They currently seem to be ordered alphabetically by the full path name. Also, having the full path name may be useful to programmers may help them locate the feature that they wish to inspect.

I am using cucumber-jvm:6.10.2 and cucumber-java:6.10.2, and I don't know if this is a problem with languages other than Java.

cowang avatar Apr 08 '21 16:04 cowang

I assume you are talking about Cucumber's built-in html formatter and https://reports.cucumber.io ?

aslakhellesoy avatar Apr 08 '21 16:04 aslakhellesoy

I assume you are talking about Cucumber's built-in html formatter and https://reports.cucumber.io ?

No, I don't think so. I'm talking about (in Gradle): args = [ '--plugin', 'html:build/reports/tests/cucumber/...]

I'm using 6.10.2 of cucumber-java and cucumber-junit.

You can see an example of the web page produced at https://truej-lang.org/TestResults/ReadyFeatures.html

cowang avatar Apr 09 '21 00:04 cowang