Skip to content

test: test suite name should include base path#12214

Merged
9aoy merged 3 commits intomainfrom
rename-test-suite
Nov 17, 2025
Merged

test: test suite name should include base path#12214
9aoy merged 3 commits intomainfrom
rename-test-suite

Conversation

@9aoy
Copy link
Copy Markdown
Contributor

@9aoy 9aoy commented Nov 17, 2025

Summary

fix test -t hotCases/asset/parser-and-generator-states not found
before:
20251117-131207

after:
image

Related links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings November 17, 2025 05:13
@9aoy 9aoy requested a review from LingyuCoder as a code owner November 17, 2025 05:13
@netlify
Copy link
Copy Markdown

netlify bot commented Nov 17, 2025

Deploy Preview for rspack canceled.

Name Link
🔨 Latest commit 9390546
🔍 Latest deploy log https://app.netlify.com/projects/rspack/deploys/691ad0d0d51e310008b5bf1b

@github-actions github-actions bot added the team The issue/pr is created by the member of Rspack. label Nov 17, 2025
Copy link
Copy Markdown
Contributor

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 fixes test suite naming to properly include the base path, enabling correct test selection when using the -t flag. The key change modifies how test suite names are constructed by using the actual source directory basename instead of the derived testId.

Key changes:

  • Updated @rstest/core from version 0.6.4 to 0.6.5
  • Modified test suite naming logic to use the actual source directory basename

Reviewed Changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.

File Description
packages/rspack-test-tools/src/helper/directory.ts Changed test suite naming to use testSourceId (source directory basename) instead of testId, fixing test selection
package.json Updated @rstest/core dependency from ^0.6.4 to ^0.6.5
tests/rspack-test/package.json Updated @rstest/core dependency from ^0.6.4 to ^0.6.5
pnpm-lock.yaml Updated lockfile to reflect new @rstest/core version and related dependencies
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Nov 17, 2025

📦 Binary Size-limit

Comparing 9390546 to fix: should handle loader error with empty stack trace (#12213) by Cong-Cong Pan

🙈 Size remains the same at 47.46MB

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Nov 17, 2025

CodSpeed Performance Report

Merging #12214 will not alter performance

Comparing rename-test-suite (9390546) with main (09a4d48)

Summary

✅ 17 untouched

@9aoy 9aoy merged commit 08c2219 into main Nov 17, 2025
49 checks passed
@9aoy 9aoy deleted the rename-test-suite branch November 17, 2025 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team The issue/pr is created by the member of Rspack.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants