Skip to content

allow tests to run independently from code coverage#4960

Merged
ewaterman merged 1 commit intodevelopfrom
bug/allow-tests-to-run-individually
Nov 27, 2024
Merged

allow tests to run independently from code coverage#4960
ewaterman merged 1 commit intodevelopfrom
bug/allow-tests-to-run-individually

Conversation

@ewaterman
Copy link
Member

✨ Description of Change

A concise summary of what is being changed. Please provide enough context for reviewers to be able to understand the change and why it is necessary. If the issue/ticket already provides enough information, you can put "See ticket" as the description.

Link to GitHub issue or Jira ticket: N/A

Description: Removes the finalizedBy jacocoTestReport block in all test tasks that was generating jacoco reports.

This was convenient for GitHub Actions since it allowed them to just run ./grailsw test-app to generate reports but it also prevented us from being able to do things like grails test-app AuthApiSpec -integration to refine what tests we want to run. jacocoTestReport has dependsOn test, integrationTest so it'd end up running ALL the tests and ignoring the filters.

This solution is actually better IMO in that it requires us to be more specific about when we want to run tests for the purpose of generating a report (./gradlew jacocoTestReport)

@ewaterman ewaterman self-assigned this Nov 27, 2024
@github-actions github-actions bot added type: bug Addresses unintended behaviours of the app domain: devops Changes or discussions relating to dev ops automation flag: config change Hilights a pull request that contains a change to the app config labels Nov 27, 2024
@codecov
Copy link

codecov bot commented Nov 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 7.62%. Comparing base (7c08257) to head (3a42239).
Report is 88 commits behind head on develop.

Additional details and impacted files
@@            Coverage Diff            @@
##             develop   #4960   +/-   ##
=========================================
  Coverage       7.62%   7.62%           
  Complexity       818     818           
=========================================
  Files            600     600           
  Lines          42275   42275           
  Branches       10276   10276           
=========================================
  Hits            3224    3224           
  Misses         38586   38586           
  Partials         465     465           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ewaterman ewaterman merged commit f4d6211 into develop Nov 27, 2024
@ewaterman ewaterman deleted the bug/allow-tests-to-run-individually branch November 27, 2024 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

domain: devops Changes or discussions relating to dev ops automation flag: config change Hilights a pull request that contains a change to the app config type: bug Addresses unintended behaviours of the app

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant