项目文件夹

文件
2026-07-13 12:38:36 +08:00

654 B

Gradle

After making changes to a project, run the relevant test class(es) to verify your changes work correctly.

Run Specific Test Class

Use the test target with the --testClassName flag to filter by class name:

nx test <project> --testClassName=<ClassName>
# Example: nx test my-app --testClassName=DemoApplicationTest

Quick Reference

Task Command
Run test class nx test proj --testClassName=DemoApplicationTest
Run all tests nx test proj