-
Notifications
You must be signed in to change notification settings - Fork 100
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
Hierarchy for Tags or Tests #90
Comments
This is more or less the same as #27 regarding the tags.
Maybe even having the possibility to show all scenarios of a certain package? |
In #27 the suggestion would be to be define categories again as Java annotations and then annotate the
|
@janschaefer - regarding package names, yes, a layout like
would be perfect. When I select a package I would like to see the test cases in the selected package and in the subpackages. I'm always talking about the HTML5 report by the way. |
@janschaefer - regarding annotations as outlined in #27 it would work for me as long as I can define as many hierarchy levels as needed. I the order of the annotations preserved (1st annotation = 1st level, 2nd annotation = 2nd level)? BTW: I didn't think that #27 named "Meta Tag" would contain such a nice thing ... :-) |
Well, I actually would rather say that you only put the subcategory annotation to the tag. And the subcategory has as annotation the category, something like:
|
ok for me as long as multiple category levels are possible in the report. |
Sure. Ok, I will try to implement that. Shouldn't be too hard ;-) |
Hierarchy for test classes is now implemented in PR #91 |
Just built current version locally to have a look at PR #91. Looks really nice! Thanks a lot! |
Ok. Cool :-). Regarding the hierarchical tags: I am working on it, but it turned out to be more difficult than I first expected. I am nearly done though. |
Finally the feature is now implemented. #99 |
Thx :-) |
To advocate for JGiven in a larger project I would like to see hierarchies for test cases.
This could lead to a business motivated hierarchy like:
One source of a hierarchy could be java package names (in JGiven i.e. see all tests in the com.tngtech.jgiven.report package). But this allows only for one hierarchy in the project.
Another source could a category for tags. Some pseudo-code:
As we have a
TagDescriptionGenerator
it would be useful for me to have also aTagCategoryGenerator
to allow for parameterized annotations like thisPlease comment if you find this useful as well.
Thanks!
The text was updated successfully, but these errors were encountered: