Skip to content

Commit

Permalink
Update paths to CSV reports in load-test workflow
Browse files Browse the repository at this point in the history
Adjusted the paths for CSV reports to be read from the 'locust/reports' directory. This change ensures the correct files are referenced for summary generation in the GitHub Actions workflow.
  • Loading branch information
chrillep committed Sep 11, 2024
1 parent 0fc308f commit 8cc32f9
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/load-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,19 +104,24 @@ jobs:

- name: Print CSV reports
if: always()
# files
# report_exceptions.csv
# report_failures.csv
# report_stats_history.csv
# report_stats.csv
run: |
echo "### Load CSV test reports" >> $GITHUB_STEP_SUMMARY
echo "#### Exceptions" >> $GITHUB_STEP_SUMMARY
npx --yes --package=csv-to-markdown-table@latest -c 'csv-to-markdown-table --delim , --headers < report_exceptions.csv > report_exceptions.md'
npx --yes --package=csv-to-markdown-table@latest -c 'csv-to-markdown-table --delim , --headers < locust/reports/report_exceptions.csv > report_exceptions.md'
cat report_exceptions.md >> $GITHUB_STEP_SUMMARY
echo "#### Failures" >> $GITHUB_STEP_SUMMARY
npx --yes --package=csv-to-markdown-table@latest -c 'csv-to-markdown-table --delim , --headers < report_failures.csv > report_failures.md'
npx --yes --package=csv-to-markdown-table@latest -c 'csv-to-markdown-table --delim , --headers < locust/reports/report_failures.csv > report_failures.md'
cat report_failures.md >> $GITHUB_STEP_SUMMARY
echo "#### Stats history" >> $GITHUB_STEP_SUMMARY
npx --yes --package=csv-to-markdown-table@latest -c 'csv-to-markdown-table --delim , --headers < report_stats_history.csv > report_stats_history.md'
npx --yes --package=csv-to-markdown-table@latest -c 'csv-to-markdown-table --delim , --headers < locust/reports/report_stats_history.csv > report_stats_history.md'
cat report_stats_history.md >> $GITHUB_STEP_SUMMARY
echo "#### Stats" >> $GITHUB_STEP_SUMMARY
npx --yes --package=csv-to-markdown-table@latest -c 'csv-to-markdown-table --delim , --headers < report_stats.csv > report_stats.md'
npx --yes --package=csv-to-markdown-table@latest -c 'csv-to-markdown-table --delim , --headers < locust/reports/report_stats.csv > report_stats.md'
cat report_stats.md >> $GITHUB_STEP_SUMMARY
- name: Print HTML report
Expand Down

0 comments on commit 8cc32f9

Please sign in to comment.