-
Notifications
You must be signed in to change notification settings - Fork 112
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
[Feature Request] HTML output like pytest-cov #193
Comments
It's been suggested before. The problem I have with it is that it sounds good, and people would like it, but when they have it.. then what? Isn't it actually worthless? The only thing that actually hold value to kill mutants is to have the report we already have I think. Please tell me where my logic is flawed. |
I'm currently running mutmut over a non-public project. It checks over 10k mutants. The structure of that project ... let's say, it could be improved. There are files that have A LOT of lines. The report generated by Many mutants are showing not super interesting flaws of the test suite. But some are very important. By finding the important ones quickly I would also have an easier time to show my team the value of mutmut with a minimal pull request that addresses those. |
By the way: When I asked the question, I didn't know that
I've used a far worse method which wrote all tested mutants in a single HTML file. I had a hard time just opening that file in my browser. It also listed killed mutants. |
I guess it would make sense in your scenario to have a coverage-like report with green (covered), yellow (some covered, some not) and red (not covered)? |
I would absolutely love that ❤️ 😄 |
Do you know why the |
Because I misuse click in mutmut quite badly. It should be using click subcommands but I didn't get that to work when I tried many years ago. |
I believe such an html report would be very simple as you can just read the file/line numbers from the cache and use that. |
I'm new to 'mutmut' so was interested to see this issue. Have you used http://pitest.org at all? it produces Html rather like is described here. I've been using it for years and it's very helpful in terms of formatting. Basically for each class you get a html file of the entire class, and on each line you have different colours for so when say, you're working on a new branch, you just compare to the master branch report to start with- and as long as there's no more red (ideally all green:) you know you're in a good place. apologies if this has already been discussed elsewhere, I know this issue is a few months old:) I'm coming to Python from Java so very pleased to find another good mutation tool, and interested to see the differences in approach when it comes to reporting etc |
Personally I don't find an html report actually useful. It's interesting and all, but ultimately pointless for the work, in my opinion. The html report in mutmut is very bare bones and quite slow to generate. I will accept PRs to improve it if others feel differently than me though. |
@MartinThoma @ejocharcole have a look at #211 |
I would like to have a colorized output which shows all lines of code. The lines which contain surviving mutants should be colored read, the ones which contain killed mutants green (with the option to remove the highlighting via JavaScript).
I can generate an example with pytest-cov if that helps to communicate the idea what I'm looking for.
Would this be something you would also like?
The text was updated successfully, but these errors were encountered: