-
Notifications
You must be signed in to change notification settings - Fork 12k
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
ng test does not run tests for all projects #21473
Comments
I think we should clarify the docs, that this only happens when test are not run in watch mode (Which is true by default). |
The newly generated repository for #21619 reproduces this as well, but our upgraded v12 application does not. |
Interesting so something else might be going on |
I stand to correct myself. The test command runs only the default project tests when a project is not provided and watch true by default. All tests are run when no project is provided and watch is false which we found useful for CI. Sorry for the confusion. |
So what is the solution to run all tests in monorepo? |
According to pr #21478 the documentation should clarify that all projects are only tested, when Anyway: angular.io does not yet show the modified documentation. |
In #21478 it was decided it's not a purely documentation issue. #26850 contains reproduction instructions with Angular 17 cli. I wonder if the fix effort is tied with web-test-runner, since @dgp1130 wrote Moving Angular CLI to Jest and Web Test Runner, would you happen to know? |
🐞 Bug report
Command (mark with an
x
)Is this a regression?
Don't know
Description
The
ng test
documentation states "When a project name is not supplied, it will execute for all projects". However, this does not appear to be true. Only the tests for a single project are run.🔬 Minimal Reproduction
ng test
and observe how only the tests for the app are run. The tests for the lib are not run.OR
ng test
and observe how only the tests for the app are run. The tests for the lib are not run.🔥 Exception or Error
N/A
🌍 Your Environment
Anything else relevant?
The text was updated successfully, but these errors were encountered: