Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesnetherton committed Apr 29, 2024
1 parent 1bff779 commit a4661cc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/actions/test-summary/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ runs:
report.testcase.forEach((testCase) => {
if (testCase.failure !== undefined) {
const shortClassName = `<code>${testCase.classname.substring(testCase.classname.lastIndexOf('.') + 1)}</code>`;
const className = `<details><summary>${shortClassName}</summary>\n${testCase.classname}</details>`;
const className = `<details><summary>${shortClassName}</summary>\n<code>${testCase.classname}</code></details>`;
const details = `<details><summary>View</summary>\n<code>${testCase.failure[0].inner}</code></details>`;
let testName = `<code><${testCase.name}</code>`;
if (testName.length > 25) {
testName = `<details><summary>View</summary>\n<code><${testCase.name}</code></details>`;
let testName = `<code>${testCase.name}</code>`;
if (testCase.length > 25) {
testName = `<details><summary>View</summary>\n<code>${testCase.name}</code></details>`;
}
let message = `<code>testCase.failure[0].message</code>`;
Expand Down

0 comments on commit a4661cc

Please sign in to comment.