-
Notifications
You must be signed in to change notification settings - Fork 230
test: support shared steps #14248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: support shared steps #14248
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds support for parsing and recursively fetching shared steps referenced via <compref>
tags in test case steps.
- Introduces a combined regex to capture both
<step>
blocks and<compref>
tags. - Refactors step extraction into an async
getStepDetails
function. - Adds logic to fetch and inline shared steps by recursively calling
getStepDetails
.
Comments suppressed due to low confidence (1)
packages/tests/scripts/fetch-test-plan-test-cases.ts:131
- The variable
text
is used without declaration, leading to a compile error under strict mode. Declare it (e.g.,let text: string | undefined;
) before first use.
const getStepDetails = async (
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #14248 +/- ##
=======================================
Coverage 90.02% 90.02%
=======================================
Files 647 647
Lines 38861 38861
Branches 7829 7797 -32
=======================================
Hits 34984 34984
Misses 1756 1756
Partials 2121 2121 🚀 New features to boost your workflow:
|
No description provided.