e2e test should exit with -1 if devServerTarget failed #22272
Labels
scope: testing tools
Issues related to Cypress / Jest / Playwright / Vitest support in Nx
type: feature
Description
right now if the
devServerTarget
of the e2e fails, the e2e stay hanging forever (till it timeout in the CI)it wastes our resources a lot in our CI, because normally it takes 45 mins to complete, we notice the error usually when it pass 1 hour
Motivation
it will save our resources in the CI
Suggested Implementation
to check if the
devServerTarget
has errors, if it does to exit with -1 immediatelyAlternate Implementations
nothing
additional information
this happen with us because of this bug in Angular angular/angular-cli#27167
there is nothing we could do to make sure the server will actually serve, because we could easily add the build step before the e2e to make sure the code is valid, but it doesn't guarantee the serve will actually work
The text was updated successfully, but these errors were encountered: