[Tracking]: Test infrastructure #5685
Labels
team
The issue/pr is created by the member of Rspack.
tracking issue
Category: A tracking issue for an RFC or an unstable feature.
Milestone
Uh oh!
There was an error while loading. Please reload this page.
This tracking issue tracks every task related to task infrastructures to fulfill our needs in either aligning rspack to webpack or adding rspack's own testing infrastructures.
Goals
1. Decouple webpack-tests from rspack-tests. In old days of rspack development, we mixed rspack tests and webpack tests in
packages/rspack/tests
and recently we discovered that this will make us harder to distinguish tests with webpack and make it harder for us to track the progress of alignment. In this stage, we will try remove webpack test cases from rspack tests.2. Align existing test runners. The old test runners are forked with modifications from webpack. To align as much as possible, we have to align test runners with webpack. In this stage, we will replace rspack old test runners with original webpack.
3. Move rspack-specific test runner to
packages/rspack-test-tools
.4. Panic free tests. Test whether it's enabled or not should be panic free. In this stage, we will enable every test case and test if it's panic-free. Details will be added by
@Boshen soon.
5. Design new test runners. Add new test runners for benchmarking, dts checking and so on. Details will be added by @LingyuCoder soon.
How
1. Decouple webpack-tests from rspack-tests. (DONE) To check if there's any tests coupled, run
node scripts/test/diff.cjs
in the root directory of this repo. This check has already been enabled in CI.2. Align existing test runners. (DONE) Port webpack test runners to
packages/rspack/tests
, and try to pass rspack tests. Adjusting old rspack test cases is allowed. Make sure to add CHANGE comment to rspack-specific to track the difference, for example:3. Move rspack-specific test runner to
packages/rspack-test-tools
. Move all rspack-only test runners and its cases topackages/rspack-test-tools
and remove ts configuration in oldpackages/rspack/tests
.4. Panic free tests.
5. Design new test runners. (WIP)
Tasks
Align existing test runners
Check panics
The text was updated successfully, but these errors were encountered: