Skip to content
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

Group suites from different files by name in the report #132

Open
Fuco1 opened this issue Aug 28, 2018 · 1 comment
Open

Group suites from different files by name in the report #132

Fuco1 opened this issue Aug 28, 2018 · 1 comment

Comments

@Fuco1
Copy link
Contributor

Fuco1 commented Aug 28, 2018

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.

@jorgenschaefer
Copy link
Owner

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants