Skip to content

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

Merged
merged 4 commits into from
Jul 10, 2025
Merged

test: support shared steps #14248

merged 4 commits into from
Jul 10, 2025

Conversation

hellyzh
Copy link
Collaborator

@hellyzh hellyzh commented Jul 10, 2025

No description provided.

@hellyzh hellyzh requested a review from Copilot July 10, 2025 01:28
Copy link
Contributor

@Copilot Copilot AI left a 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 (

Copy link

codecov bot commented Jul 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.02%. Comparing base (08a6ef6) to head (1337649).
Report is 3 commits behind head on dev.

Additional details and impacted files

Impacted file tree graph

@@           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:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@hellyzh hellyzh merged commit dc62095 into dev Jul 10, 2025
42 of 46 checks passed
@hellyzh hellyzh deleted the hellyzh/sharedstep branch July 10, 2025 08:41
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