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
[BUG] changes in test command execution #829
Comments
Hey @Den-dp - A build was always ran before your tests, but it was originally handled via the dotnet cli. We now pass I'll look into the command hanging, its possible thats something on the Nx side from the v17.3 / 18 changes. |
Problem is though, that previously we could use noBuild option to prevent build happening prior to running the tests. But now there is no way to do that since the build is a task dependency and there is no way to skip task dependencies that I'm aware of. This is a problem, because building is slow. Even with a cached build, it's slow to determine that no build needs to happen. We have a monorepo with 100+ projects and with the latest version running |
You can opt out of it by setting It shouldn't be adding minutes, as determining cache hits should be fast (especially if daemon is active). If its taking minutes, I'd advise opening an issue on the main Nx repo as that's certainly not the goal. |
I think the slowness issue is this nrwl/nx#19627. Setting |
Current Behavior
after migration to 2.2.0 I see 2 issues:
running tests now leads to running a build
2.1.2
2.2.0
after the build I see that the test target is getting stuck and can't be stopped using Ctrl+C (might be powershell specific)
Expected Behavior
nx test
must rundotnet test
but notdotnet build + dotnet test
(not 100% sure this is right, but this is how it was early)nx test
must not stuckGithub Repo
No response
Steps to Reproduce
2.1.2 test target behavior
# migrate to 2.2.0 npx nx migrate @nx-dotnet/core@latest npm i
2.2.0 test target behavior
Nx Report
nx.json
Failure Logs
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: