Skip to content
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

[Docs]: Playwright’s Best practices for handling .env file #34393

Closed
grajesh690 opened this issue Jan 18, 2025 · 1 comment
Closed

[Docs]: Playwright’s Best practices for handling .env file #34393

grajesh690 opened this issue Jan 18, 2025 · 1 comment

Comments

@grajesh690
Copy link

Page(s)

https://playwright.dev/docs/test-parameterize#env-files

Description

Since playwright provides option to specify env file path in playwright configuration, it would be great that, if playwright provides guidance on the below

  • Best practices on handling .env file
  • Should .env file needs to be included .gitignore or we can commit the .env file without any creds or placeholders for creds
  • In CI-CD how creds can be handled
@pavelfeldman
Copy link
Member

Managing environment falls outside of the scope of Playwright, you can use a third party package dotenv as demonstrated in the example. Dotenv is a very popular library that comes with the best practices described outside of Playwright.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants