nrwl--nx
654 B
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 |