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

Mutants count as a badge #382

Open
antoinezanardi opened this issue Jun 19, 2023 · 7 comments
Open

Mutants count as a badge #382

antoinezanardi opened this issue Jun 19, 2023 · 7 comments
Labels

Comments

@antoinezanardi
Copy link

Is your feature request related to a problem? Please describe.

I love the idea of the Mutation Score from the dashboard. I would like the same feature but with the number of mutants executed. The same number as the one in the All Files line, in column Total in the coverage HTML report.

Describe the solution you'd like

I would like to get a badge for the number of mutants executed from the dashboard, like the mutation score.

Additional context

image

The number should be the one on the very right of this screenshot from the coverage HTML report.

Thanks again for your hard work, I use stryker on a daily basis and I really love this tool.

@nicojs
Copy link
Member

nicojs commented Jun 19, 2023

Thanks for your kind words 🥰

Why would this be useful? I mean, it says more about the size of your project than anything else. Like lines of code.

@antoinezanardi
Copy link
Author

You're welcome !

Indeed, it says mostly about the project's size. It's actually a good metric because there's a difference between 100% mutation score based on 10 mutants than 2000.

jest offers some metrics like : statements, functions, modules to quantify the test coverage other than the percent.

Do you think this is possible for mutants count ?

@nicojs nicojs transferred this issue from stryker-mutator/stryker-js Jun 20, 2023
@nicojs
Copy link
Member

nicojs commented Jun 20, 2023

That sounds like a great feature. I've moved it to "stryker-dashboard", the mono repo for dashboard-related stuff.

Would something like this work for you?




@rouke-broersma
Copy link
Member

rouke-broersma commented Jun 20, 2023

@antoinezanardi
Copy link
Author

I like this format :

840/1200 mutants | 70%

What do you think ?

@nicojs
Copy link
Member

nicojs commented Jun 21, 2023

Sure. If you feel up to it you can add it yourself @antoinezanardi

See
https://github.com/stryker-mutator/stryker-dashboard/tree/master/packages/badge-api

@antoinezanardi
Copy link
Author

I'll give it a try soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Backlog
Development

No branches or pull requests

5 participants