Skip to content

feat(internal/command): add RequireCommand test helper#2978

Merged
julieqiu merged 2 commits intogoogleapis:mainfrom
julieqiu:helpers
Nov 20, 2025
Merged

feat(internal/command): add RequireCommand test helper#2978
julieqiu merged 2 commits intogoogleapis:mainfrom
julieqiu:helpers

Conversation

@julieqiu
Copy link
Copy Markdown
Member

A RequireCommand test helper function is added to skip tests when required external commands are not installed. This function is exported from the internal/command package and can be used across test files.

The helper replaces the previous requireCommand, requireProtoc, and requireCargo functions that were defined in internal/sidekick/sidekick.

A RequireCommand test helper function is added to skip tests when
required external commands are not installed. This function is exported
from the internal/command package and can be used across test files.

The helper replaces the previous requireCommand, requireProtoc, and
requireCargo functions that were defined in internal/sidekick/sidekick.
@julieqiu julieqiu requested a review from a team November 20, 2025 05:01
@julieqiu julieqiu requested a review from a team as a code owner November 20, 2025 05:01
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@julieqiu julieqiu removed the request for review from a team November 20, 2025 05:01
@julieqiu julieqiu enabled auto-merge (squash) November 20, 2025 05:01
@codecov
Copy link
Copy Markdown

codecov bot commented Nov 20, 2025

Codecov Report

❌ Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.00%. Comparing base (502b063) to head (7da2da3).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
internal/command/testhelpers.go 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2978      +/-   ##
==========================================
- Coverage   83.05%   83.00%   -0.05%     
==========================================
  Files         139      140       +1     
  Lines       11073    11077       +4     
==========================================
- Hits         9197     9195       -2     
- Misses       1459     1465       +6     
  Partials      417      417              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@julieqiu julieqiu merged commit a820a71 into googleapis:main Nov 20, 2025
8 checks passed
ldetmer added a commit that referenced this pull request Nov 20, 2025
PR created by the Librarian CLI to initialize a release. Merging this PR
will auto trigger a release.

Librarian Version: not available
Language Image:
us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/librarian-release-container:latest
<details><summary>librarian: 0.7.0</summary>

##
[0.7.0](v0.6.0...v0.7.0)
(2025-11-20)

### Features

* add command execution package with logging (#2968)
([12f4e94](12f4e949))

* add branch support to RepositoryConfig (#2906)
([2cab5d6](2cab5d65))

* add image sha as a config in repositories config (#2954)
([3d1f537](3d1f5375))

* add initial config (#2965)
([502b063](502b063c))

* add fetch package (#2964)
([53de44d](53de44d8))

* parse gapic_metadata for API version release notes (#2815)
([7ee0328](7ee03283))

* onboard 25 repositories to automation for publish-release (#2907)
([87fae04](87fae04a))

* add version command (#2894)
([8f85be0](8f85be09))

* add RequireCommand test helper (#2978)
([a820a71](a820a710))

* add initial command (#2961)
([c959aea](c959aeae))

* add `stage-release` command (#2902)
([ee05006](ee050065))

### Bug Fixes

* require git v2.28.0 (#2963)
([265ee47](265ee47f))

* enums referenced outside the package (#2952)
([7331816](73318169))

</details>
@julieqiu julieqiu deleted the helpers branch December 31, 2025 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants