Skip to content

Commit

Permalink
feat(Dashboard reporter): upload full html report by default (#2039)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: The dashboard reporter will now upload a full report by default. If you don't want that, you can disable it with: 

```json
{
  "dashboard": {
    "reportType": "mutationScore"
   }
}
```
  • Loading branch information
simondel authored Feb 14, 2020
1 parent 0bc9c0a commit e23dbe1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/api/schema/stryker-core.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"reportType": {
"description": "Indicates wether to send a full report (inc. source code and mutant results) or only the mutation score.",
"$ref": "#/definitions/reportType",
"default": "mutationScore"
"default": "full"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/config/Config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default class Config implements StrykerOptions {
*/
public dashboard: DashboardOptions = {
baseUrl: 'https://dashboard.stryker-mutator.io/api/reports',
reportType: ReportType.MutationScore
reportType: ReportType.Full
};
public tempDirName: string = defaultTempDirName;

Expand Down
2 changes: 1 addition & 1 deletion packages/api/test/unit/config/Config.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe('Config', () => {
});
const expected: DashboardOptions = {
baseUrl: 'https://dashboard.stryker-mutator.io/api/reports',
reportType: ReportType.MutationScore,
reportType: ReportType.Full,
project: 'my-pet-shop'
};
expect(sut.dashboard).deep.eq(expected);
Expand Down
2 changes: 1 addition & 1 deletion packages/api/testResources/module/useCore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const optionsAllArgs: StrykerOptions = {
transpilers: [],
dashboard: {
baseUrl: 'baseUrl',
reportType: ReportType.MutationScore,
reportType: ReportType.Full,
module: 'module',
project: 'project',
version: 'version'
Expand Down

0 comments on commit e23dbe1

Please sign in to comment.