Skip to content

Commit

Permalink
fix: amend to use groupBy
Browse files Browse the repository at this point in the history
  • Loading branch information
Ma11hewThomas committed Dec 16, 2024
1 parent 12fbbc6 commit 7da2b40
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "github-actions-ctrf",
"version": "0.0.50-rc.5",
"version": "0.0.50-rc.6",
"description": "View test results directly within your GitHub workflow summary and Pull Requests",
"main": "index.js",
"scripts": {
Expand Down
5 changes: 4 additions & 1 deletion src/ctrf/report-preparation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ export async function prepareReport(
report = enrichCurrentReportWithRunDetails(report, githubContext)

if (shouldGroupTests(inputs)) {
report = groupTestsBySuiteOrFilePath(report, inputs.useSuiteName)
report = groupTestsBySuiteOrFilePath(
report,
inputs.groupBy === 'suite' ? true : false
)
}

if (shouldPrefixTestNames(inputs)) {
Expand Down

0 comments on commit 7da2b40

Please sign in to comment.