-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(report): support upload of full report to dashboard (#1783)
Support having the full HTML report send to the stryker dashboard (https://dashboard.stryker-mutator.io). See design: stryker-mutator/stryker-handbook#27 and https://github.com/stryker-mutator/stryker-handbook/blob/master/dashboard.md Changes: * Add `dashboard` options: `baseUrl`, `project`, `version`, `module` `reportType` (`'mutationScore'`/`'full'`). * Updated CI providers (travis and circle ci are supported) * Update `StrykerCli`: made it testable and written tests for it.
- Loading branch information
Showing
30 changed files
with
847 additions
and
419 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/** | ||
* The options for the dashboard reporter. | ||
*/ | ||
export interface DashboardOptions { | ||
/** | ||
* Indicates which project to use if the "dashboard" reporter is enabled. | ||
*/ | ||
project?: string; | ||
/** | ||
* Indicates which version to use if the "dashboard" reporter is enabled. | ||
*/ | ||
version?: string; | ||
/** | ||
* Indicates which module to use if the "dashboard" reporter is enabled. | ||
*/ | ||
module?: string; | ||
/** | ||
* Indicates the base url of the stryker dashboard. | ||
*/ | ||
baseUrl: string; | ||
/** | ||
* Indicates wether to send a full report (inc. source code and mutant results) or only the mutation score. | ||
*/ | ||
reportType: ReportType; | ||
} | ||
|
||
export enum ReportType { | ||
Full = 'full', | ||
MutationScore = 'mutationScore' | ||
} | ||
|
||
export const ALL_REPORT_TYPES = Object.freeze([ReportType.Full, ReportType.MutationScore]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.