Skip to content

Commit

Permalink
Use the label flag I first guessed. Also change heading delimiters
Browse files Browse the repository at this point in the history
because it avoids creating headings accidentally
  • Loading branch information
plocket committed May 26, 2024
1 parent 5f782ff commit 9ff6c9a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/github_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,10 @@ jobs:
fi
gh issue create --title "Parse file in workflow: Test if failed tests make issue" --body "An ALKiln test run failed. See the action at ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}.
### Results:
$UNEXPECTED_RESULTS" --repo "$GITHUB_REPOSITORY" --add-label "testing"
$UNEXPECTED_RESULTS" --repo "$GITHUB_REPOSITORY" --label "testing"
# ### Developer note: Example of making an issue when tests fail, part 1
# #- name: Get ALKiln output files
Expand Down
14 changes: 7 additions & 7 deletions lib/utils/reports.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ const files = require(`./files` );
module.exports = reports = {};

reports.title = `Assembly Line Kiln Automated Testing Report - ${ (new Date()).toUTCString() }\n`;
reports.failures = [ `\n\n===============================\n===============================\n🤕 Failed scenarios:\n` ];
reports.successes = [ `\n\n===============================\n===============================\n🌈 Passed scenarios:\n` ];
// reports.warnings = [ `\n\n===============================\n===============================\n🔎 Scenarios to check:\n` ];
// reports.undefineds = [ `\n\n===============================\n===============================\n[langs icon] Scenarios with typos:\n` ];
reports.others = [ `\n\n===============================\n===============================\n🔎 Other scenarios that did not pass:\n` ];
reports.failures = [ `\n\n*******************************\n*******************************\n🤕 Failed scenarios:\n*******************************` ];
reports.successes = [ `\n\n*******************************\n*******************************\n🌈 Passed scenarios:\n*******************************` ];
// reports.warnings = [ `\n\n*******************************\n*******************************\n🔎 Scenarios to check:\n*******************************` ];
// reports.undefineds = [ `\n\n*******************************\n*******************************\n[langs icon] Scenarios with typos:\n*******************************` ];
reports.others = [ `\n\n*******************************\n*******************************\n🔎 Other scenarios that did not pass:\n*******************************` ];

reports.addReportHeading = function (scope, { scenario }) {
/** Return printable heading based on Scenario name and tags.
Expand All @@ -26,14 +26,14 @@ reports.addReportHeading = function (scope, { scenario }) {
tag_names.push( tag.name );
}

let heading = `\n---------------\n`
let heading = `\n~~~~~~~~~~~~~~~\n`
+ `Scenario: ${ scenario.pickle.name }`;

if ( tag_names.length > 0 ) {
heading += `\nTags: ${ tag_names.join(' ') }`;
}

heading += `\n---------------`;
heading += `\n~~~~~~~~~~~~~~~`;

reports.addToReport( scope, {
code: `ALK0176`,
Expand Down

0 comments on commit 9ff6c9a

Please sign in to comment.