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

Support a HTML report in the dashboard #108

Closed
5 tasks done
simondel opened this issue Apr 18, 2019 · 2 comments
Closed
5 tasks done

Support a HTML report in the dashboard #108

simondel opened this issue Apr 18, 2019 · 2 comments
Assignees

Comments

@simondel
Copy link
Member

simondel commented Apr 18, 2019

TODO:

  • Implement in stryker dashboard
  • Implement in dashboard reporter Stryker
  • Implement in dashboard reporter Stryker.NET
  • Implement in dashboard reporter Stryker4s
  • Advertise this in the dashboard

We should implement this in the different reporters behind a flag IMHO. Maybe people only want the mutation score badge and not the full report.

@nicojs nicojs self-assigned this Apr 19, 2019
@hugo-vrijswijk hugo-vrijswijk changed the title Support a HTML report in the dasbhoard Support a HTML report in the dashboard Jun 5, 2019
@nicojs
Copy link
Member

nicojs commented Oct 14, 2019

This is supported by #117 although not yet advertised. We should now implement it in each Stryker implementation

This is an example curl:

curl -X PUT \
  http://localhost:1337/api/reports/github.com/nicojs/boilerplate-verifiers/master \
  -H 'Accept: */*' \
  -H 'Accept-Encoding: gzip, deflate' \
  -H 'Cache-Control: no-cache' \
  -H 'Connection: keep-alive' \
  -H 'Content-Length: 1390' \
  -H 'Content-Type: application/json' \
  -H 'Host: localhost:1337' \
  -H 'Postman-Token: e36354fc-fa91-4b29-9832-d742fd064739,65433d5d-2579-4d80-aba5-ee49e132290f' \
  -H 'User-Agent: PostmanRuntime/7.17.1' \
  -H 'X-Api-Key: 14714068-1f89-4f65-b69f-d8ec7ed99592' \
  -H 'cache-control: no-cache' \
  -d '{
        "schemaVersion": "1.1",
        "mutationScore": 50,
        "thresholds": {
            "high": 80,
            "low": 60
        },
        "files": {
            "test.js": {
                "language": "javascript",
                "source": "\"use strict\";\nfunction add(a, b) {\n  return a + b;\n}",
                "mutants": [
                    {
                        "id": "3",
                        "location": {
                            "start": {
                                "column": 1,
                                "line": 1
                            },
                            "end": {
                                "column": 13,
                                "line": 1
                            }
                        },
                        "replacement": "\"\"",
                        "mutatorName": "String Literal",
                        "status": "Survived"
                    },
                    {
                        "id": "1",
                        "mutatorName": "Arithmetic Operator",
                        "replacement": "-",
                        "location": {
                            "start": {
                                "line": 3,
                                "column": 12
                            },
                            "end": {
                                "line": 3,
                                "column": 13
                            }
                        },
                        "status": "Survived"
                    },
                    {
                        "id": "2",
                        "mutatorName": "Block Statement",
                        "replacement": "{}",
                        "location": {
                            "start": {
                                "line": 2,
                                "column": 20
                            },
                            "end": {
                                "line": 4,
                                "column": 1
                            }
                        },
                        "status": "Killed"
                    }
                ]
            }
        }
}'

@nicojs
Copy link
Member

nicojs commented Jan 22, 2020

@nicojs nicojs closed this as completed Jan 22, 2020
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

2 participants