We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Run E2E tests in angular , ng e2e This command invariably necessitates running ng serve beforehand, which typically consumes around 2 minutes.
ng e2e
It would be highly convenient for developers if tests could be run directly against an already running service.
The text was updated successfully, but these errors were encountered:
This seems to be an issue pertaining to Angular.
Sorry, something went wrong.
This issue is related to @puppeteer/ng-schematics:puppeteer
@puppeteer/ng-schematics:puppeteer
async function executeE2ETest( options: PuppeteerBuilderOptions, context: BuilderContext ): Promise<BuilderOutput> { let server: BuilderRun | null = null; try { message('\n Building tests 🛠️ ... \n', context); await executeCommand(context, [`tsc`, '-p', 'e2e/tsconfig.json']); server = await startServer(options, context); // This is not developer friendly const result = await server.result; message('\n Running tests 🧪 ... \n', context); const testRunnerCommand = getCommandForRunner(options.testRunner); await executeCommand(context, testRunnerCommand, { baseUrl: result['baseUrl'], }); message('\n 🚀 Test ran successfully! 🚀 ', context, 'success'); return {success: true}; } catch (error) { message('\n 🛑 Test failed! 🛑 ', context, 'error'); if (error instanceof Error) { return {success: false, error: error.message}; } return {success: false, error: error as string}; } finally { if (server) { await server.stop(); } } }
ng e2e must start a server, this is a waste of time.
If ng e2e can test a exist server, that would be great.
Imho this is a duplicate of #12222.
No branches or pull requests
Feature description
Run E2E tests in angular ,
ng e2e
This command invariably necessitates running ng serve beforehand, which typically consumes around 2 minutes.
It would be highly convenient for developers if tests could be run directly against an already running service.
The text was updated successfully, but these errors were encountered: