Skip to content

Commit

Permalink
fix: test results parser to specific version (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
ASaiAnudeep authored Aug 21, 2024
1 parent a4e648d commit 3ce10e6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "testbeats",
"version": "2.0.9",
"version": "2.1.0",
"description": "Publish test results to Microsoft Teams, Google Chat, Slack and InfluxDB",
"main": "src/index.js",
"types": "./src/index.d.ts",
Expand Down Expand Up @@ -55,7 +55,7 @@
"pretty-ms": "^7.0.1",
"rosters": "0.0.1",
"sade": "^1.8.1",
"test-results-parser": "latest"
"test-results-parser": "0.2.3"
},
"devDependencies": {
"c8": "^7.12.0",
Expand Down
4 changes: 1 addition & 3 deletions src/extensions/error-clusters.extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,9 @@ class ErrorClustersExtension extends BaseExtension {

const clusters = data;

this.extension.inputs.title = `Top ${clusters.length} Errors`;

const texts = [];
for (const cluster of clusters) {
texts.push(`${this.bold(`(${cluster.count})`)} - ${cluster.failure}`);
texts.push(`${cluster.failure} - ${this.bold(`(x${cluster.count})`)}`);
}
this.text = this.mergeTexts(texts);
}
Expand Down
4 changes: 2 additions & 2 deletions test/mocks/teams.mock.js
Original file line number Diff line number Diff line change
Expand Up @@ -1709,15 +1709,15 @@ addInteractionHandler('post test-summary with beats to teams with error clusters
},
{
"type": "TextBlock",
"text": "Top 2 Errors",
"text": "Top Errors",
"isSubtle": true,
"weight": "bolder",
"separator": true,
"wrap": true
},
{
"type": "TextBlock",
"text": "**(2)** - failure two\n\n**(1)** - failure one",
"text": "failure two - **(x2)**\n\nfailure one - **(x1)**",
"wrap": true
}
],
Expand Down

0 comments on commit 3ce10e6

Please sign in to comment.