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

HTML Reports #10

Open
zabawaba99 opened this issue Mar 9, 2016 · 2 comments
Open

HTML Reports #10

zabawaba99 opened this issue Mar 9, 2016 · 2 comments

Comments

@zabawaba99
Copy link
Owner

Right now, a json object is generated after mutation testing that contains an array of all mutations that occurred that looks like

[
  {
    "filename": "/Users/stevenberlanga/go/src/github.com/zabawaba99/gomutate/sample/file2.go",
    "line_number": 4,
    "original": "<",
    "mutation": "<=",
    "type": "conditionals_boundary",
    "killed": false
  }
]

In order to provide some actual use, some human readable report should be generated to do something with the results. The report should probably looks something like the standard gocoverage reporting:

screen shot 2016-03-08 at 10 42 28 pm

with a dropdown to switch between files:

screen shot 2016-03-08 at 10 42 49 pm

The html files above can be generated by running go test -coverprofile=coverage.out && go tool cover -html=coverage.out


The reports above only show code coverage. Below are a few screenshots from Pitest reports which display mutation test results ontop of code coverage

screen shot 2016-03-08 at 10 54 15 pm

screen shot 2016-03-08 at 10 54 22 pm

screen shot 2016-03-08 at 10 54 32 pm

screen shot 2016-03-08 at 10 54 44 pm

cc/ @znja

@zabawaba99
Copy link
Owner Author

Here is a zip file of the pitest html reports

pitest-results.zip

@zabawaba99
Copy link
Owner Author

And here is the go tool cover html
here.html.zip

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

No branches or pull requests

1 participant