Skip to content

Commit 047a370

Browse files
hugo-vrijswijksimondel
authored andcommitted
fix(Dashboard reporter): fix typos
1 parent 0d0fe96 commit 047a370

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

packages/stryker/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,13 +186,13 @@ for an up-to-date list of supported reporter plugins and a description on each r
186186

187187
The `clear-text` reporter supports an additional config option to show more tests that were executed to kill a mutant. The config for your config file is: `clearTextReporter: { maxTestsToLog: 3 },`
188188

189-
The `dashboard` reporter is a special kind of reporter. It sends a report to https://dashboard.stryker-mutator.io, enabling you to add a fancy mutation score badge to your readme! To make sure no unwanted results are send to the dashboards, it will only send the report if it is run from a build server. The only build server supported at the moment is travis (please open an [issue](https://github.com/stryker-mutator/stryker/issues/new) if your build server is missing). The reporter uses these environment settings:
189+
The `dashboard` reporter is a special kind of reporter. It sends a report to https://dashboard.stryker-mutator.io, enabling you to add a fancy mutation score badge to your readme! To make sure no unwanted results are sent to the dashboards, it will only send the report if it is run from a build server. The only build server supported at the moment is travis (please open an [issue](https://github.com/stryker-mutator/stryker/issues/new) if your build server is missing). The reporter uses these environment settings:
190190

191191
| Environment variable | Description | Example value |
192192
| ------------- | ------------- | ----- |
193193
| TRAVIS | Make sure we're running on the build server | TRUE |
194194
| TRAVIS\_PULL\_REQUEST | All PR builds are ignored by default | false |
195-
| TRAVIS\_BRANCH | The branch to be send along with the report | master |
195+
| TRAVIS\_BRANCH | The branch to be sent along with the report | master |
196196
| STRYKER\_DASHBOARD\_API\_KEY | Your api key (generated for this repository on https://dashboard.stryker-mutator.io) | `52248872-2edc-4102-a43a-bcfca7a9ca99` |
197197

198198
All `TRAVIS` environment variables are set by Travis for each build. However, you will need to pass the `STRYKER\_DASHBOARD\_API\_KEY` environment variable yourself. You can create one for your repository by logging in on [the stryker dashboard](https://dashboard.stryker-mutator.io). We strongly recommend you use [encrypted environment variables](https://docs.travis-ci.com/user/environment-variables/#Encrypting-environment-variables).

packages/stryker/src/reporters/DashboardReporter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ export default class DashboardReporter implements Reporter {
4343
});
4444
}
4545
} else {
46-
this.log.info('Dashboard report is not send when build is for a pull request {TRAVIS_PULL_REQUEST=<number>}');
46+
this.log.info('Dashboard report is not sent when build is for a pull request {TRAVIS_PULL_REQUEST=<number>}');
4747
}
4848
} else {
49-
this.log.info('Dashboard report is not send when stryker didn\'t run on buildserver {TRAVIS=true}');
49+
this.log.info('Dashboard report is not sent when stryker didn\'t run on buildserver {TRAVIS=true}');
5050
}
5151
}
5252
}

packages/stryker/test/unit/reporters/DashboardReporterSpec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ describe('DashboardReporter', () => {
7171

7272
// Assert
7373
expect(dashboardClientMock.postStrykerDashboardReport).to.have.not.been.called;
74-
expect(log.info).to.have.been.calledWithMatch('Dashboard report is not send when stryker didn\'t run on buildserver {TRAVIS=true}');
74+
expect(log.info).to.have.been.calledWithMatch('Dashboard report is not sent when stryker didn\'t run on buildserver {TRAVIS=true}');
7575
});
7676

7777
it('should log a info if it is a pull request', async () => {
@@ -84,7 +84,7 @@ describe('DashboardReporter', () => {
8484

8585
// Assert
8686
expect(dashboardClientMock.postStrykerDashboardReport).to.have.not.been.called;
87-
expect(log.info).to.have.been.calledWithMatch('Dashboard report is not send when build is for a pull request {TRAVIS_PULL_REQUEST=<number>}');
87+
expect(log.info).to.have.been.calledWithMatch('Dashboard report is not sent when build is for a pull request {TRAVIS_PULL_REQUEST=<number>}');
8888
});
8989

9090
it('should log a warning if the repository is unknown', async () => {

0 commit comments

Comments
 (0)