Skip to content

Commit

Permalink
Dump template-renderer coverage from Perl tests
Browse files Browse the repository at this point in the history
Many Perl tests make requests to pages rendered by the Node template-renderer.
Prior to this commit, we weren't dumping istanbul coverage data from those
tests. (The coverage is only dumped when the template-renderer process is
cleanly shut down.)
  • Loading branch information
mwiencek committed Dec 22, 2024
1 parent f651c3a commit 161b5c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker/musicbrainz-tests/run_js_perl_and_pgtap_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ sudo -E -H -u musicbrainz carton exec -- prove \
--harness=TAP::Harness::JUnit \
-v || { prove_exit_code=$?; true; }

# Stop the template-renderer so that it dumps coverage.
sv down template-renderer
sleep 10

if [ "$GITHUB_ACTIONS" = 'true' ]; then
if [[ -d .nyc_output && $(ls -A .nyc_output) ]]; then
cp -Ra .nyc_output "$GITHUB_WORKSPACE"/nyc_output
Expand Down

0 comments on commit 161b5c5

Please sign in to comment.