Skip to content

test(librarian): add e2e test for multi-library generation#1945

Merged
jinseopkim0 merged 3 commits intomainfrom
e2e-tests
Sep 8, 2025
Merged

test(librarian): add e2e test for multi-library generation#1945
jinseopkim0 merged 3 commits intomainfrom
e2e-tests

Conversation

@jinseopkim0
Copy link
Copy Markdown
Contributor

Fixes #988

@codecov
Copy link
Copy Markdown

codecov bot commented Sep 5, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.06%. Comparing base (70b68d4) to head (3bc9dbd).
⚠️ Report is 10 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1945      +/-   ##
==========================================
+ Coverage   81.90%   83.06%   +1.16%     
==========================================
  Files          83       83              
  Lines        8813     9167     +354     
==========================================
+ Hits         7218     7615     +397     
+ Misses       1240     1211      -29     
+ Partials      355      341      -14     

☔ 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.

@jinseopkim0 jinseopkim0 marked this pull request as ready for review September 5, 2025 17:49
@jinseopkim0 jinseopkim0 requested a review from a team as a code owner September 5, 2025 17:49
@jinseopkim0 jinseopkim0 enabled auto-merge (squash) September 5, 2025 17:49
@JoeWang1127
Copy link
Copy Markdown
Contributor

Could you add more test cases to verify the behavior of

  1. one of the library generation failed
  2. all library generation failed

@jinseopkim0
Copy link
Copy Markdown
Contributor Author

Could you add more test cases to verify the behavior of

  1. one of the library generation failed
  2. all library generation failed

Thanks for the comments, I've added tests for each scenario.

@JoeWang1127
Copy link
Copy Markdown
Contributor

Could you consolidate the three test cases into a table test? Looks like the test setups are similar to each other, only the state.yaml is different.

Consolidates the three separate e2e test functions for multi-library generation into a single table-driven test. This improves readability and maintainability by reducing code duplication.
@jinseopkim0
Copy link
Copy Markdown
Contributor Author

Could you consolidate the three test cases into a table test? Looks like the test setups are similar to each other, only the state.yaml is different.

Thanks for the comment, done.

@jinseopkim0 jinseopkim0 merged commit 7e955a3 into main Sep 8, 2025
10 checks passed
@jinseopkim0 jinseopkim0 deleted the e2e-tests branch September 8, 2025 17:45
julieqiu pushed a commit to julieqiu/librarian that referenced this pull request Sep 12, 2025
…1945)

Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark) from 1.7.10 to 1.7.11.
- [Release notes](https://github.com/yuin/goldmark/releases)
- [Commits](yuin/goldmark@v1.7.10...v1.7.11)

---
updated-dependencies:
- dependency-name: github.com/yuin/goldmark
  dependency-version: 1.7.11
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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.

test(librarian): add test case to verify functions to generate multiple libraries

2 participants