Skip to content

Commit 4ed60e6

Browse files
wanlin31copybara-github
authored andcommitted
chore: Exclude interactions tests from coverage reports.
FUTURE_COPYBARA_INTEGRATE_REVIEW=#1090 from googleapis:release-please--branches--main--components--genai bbf62d2 PiperOrigin-RevId: 834839800
1 parent 38cac5b commit 4ed60e6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/generate_report.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,18 @@ trap cleanup EXIT
2929

3030
UNIT=coverage-unit-test
3131
SYSTEM=coverage-system-test
32+
# TODO- b/462434591: Add coverage for interactions tests.
33+
EXCLUDE_FLAGS=(
34+
"--exclude" "src/interactions/**"
35+
)
3236
# TODO: b/435204110 - Add coverage for table tests.
3337

3438
# Generate the reports for each test suite separately to avoid covering each
3539
# other.
3640
tsc
3741
GOOGLE_API_KEY=googapikey GOOGLE_CLOUD_PROJECT=googcloudproj GOOGLE_CLOUD_LOCATION=googcloudloc
38-
c8 --reporter=json --report-dir=./${WORK_DIR}/${UNIT} jasmine dist/test/unit/**/*_test.js dist/test/unit/*_test.js
39-
c8 --reporter=json --report-dir=./${WORK_DIR}/${SYSTEM} jasmine dist/test/system/node/*_test.js -- --test-server
42+
c8 "${EXCLUDE_FLAGS[@]}" --reporter=json --report-dir=./${WORK_DIR}/${UNIT} jasmine dist/test/unit/**/*_test.js dist/test/unit/*_test.js
43+
c8 "${EXCLUDE_FLAGS[@]}" --reporter=json --report-dir=./${WORK_DIR}/${SYSTEM} jasmine dist/test/system/node/*_test.js -- --test-server
4044

4145
# Move all the generated coverage reports to the same directory to merge reports.
4246
mv ./${WORK_DIR}/${UNIT}/coverage-final.json ./${WORK_DIR}/${UNIT}-coverage-report.json

0 commit comments

Comments
 (0)