emacs-buttercup icon indicating copy to clipboard operation
emacs-buttercup copied to clipboard

Group suites from different files by name in the report

Open Fuco1 opened this issue 5 years ago • 1 comments

If I have multiple files which define the same suit with (describe "foo") I would like to see it only once in the report with the subsuites/assertions merged.

This is a massive bikeshed but it bothers me :D I've tried to do something here but I don't quite understand the code collecting the stuff and it's relation to the output.

Ideally someone else would implement this but helpful pointers welcome... if I ever get annoyed over the top and tip into trying to actually fixing this.

Well, in the first place, does this even make sense? I know jest is doing this which is based off of jasmine, so there is some precedence.

Fuco1 avatar Aug 28 '18 13:08 Fuco1

Nice idea :-)

You'd have to change buttercup-describe and buttercup-suite-add-child to not just append, but to use a hash or something. There's already code in buttercup-describe to handle duplications. Does this help?

jorgenschaefer avatar Aug 31 '18 08:08 jorgenschaefer