.env.example 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. # This is a dotenv file used by JavaScript tasks.
  2. # Copy this to '.env' to override.
  3. #############################
  4. # General Test Environment #
  5. #############################
  6. # This is the URL that Drupal can be accessed by. You don't need an installed
  7. # site here, just make sure you can at least access the installer screen. If you
  8. # don't already have one running, e.g. Apache, you can use PHP's built-in web
  9. # server by running the following command in your Drupal root folder:
  10. # php -S localhost:8888 .ht.router.php
  11. # DRUPAL_TEST_BASE_URL=http://localhost:8888
  12. DRUPAL_TEST_BASE_URL=
  13. # Tests need to be executed with a user in the same group as the web server
  14. # user.
  15. #DRUPAL_TEST_WEBSERVER_USER=www-data
  16. # By default we use sqlite as database. Use
  17. # mysql://username:password@localhost/databasename#table_prefix for mysql.
  18. DRUPAL_TEST_DB_URL=sqlite://localhost/sites/default/files/db.sqlite
  19. #############
  20. # Webdriver #
  21. #############
  22. # If Chromedriver is running as a service elsewhere, set it here.
  23. # When using DRUPAL_TEST_CHROMEDRIVER_AUTOSTART leave this at the default settings.
  24. DRUPAL_TEST_WEBDRIVER_HOSTNAME=localhost
  25. DRUPAL_TEST_WEBDRIVER_PORT=9515
  26. # If using Selenium, override the path prefix here.
  27. # See http://nightwatchjs.org/gettingstarted#browser-drivers-setup
  28. #DRUPAL_TEST_WEBDRIVER_PATH_PREFIX=/wd/hub
  29. ################
  30. # Chromedriver #
  31. ################
  32. # Automatically start chromedriver for local development. Set to false when you
  33. # use your own webdriver or chromedriver setup.
  34. # Also set it to false when you use a different browser for testing.
  35. DRUPAL_TEST_CHROMEDRIVER_AUTOSTART=true
  36. # A list of arguments to pass to Chrome, separated by spaces
  37. # e.g. `--disable-gpu --headless --no-sandbox`.
  38. #DRUPAL_TEST_WEBDRIVER_CHROME_ARGS=
  39. ##############
  40. # Nightwatch #
  41. ##############
  42. # Nightwatch generates output files. Use this to specify the location where these
  43. # files need to be stored. The default location is ignored by git, if you modify
  44. # the location you will probably want to add this location to your .gitignore.
  45. DRUPAL_NIGHTWATCH_OUTPUT=reports/nightwatch
  46. # The path that Nightwatch searches for assumes the same directory structure as
  47. # when you download Drupal core. If you have Drupal installed into a docroot
  48. # folder, you can use the following folder structure to add integration tests
  49. # for your project, outside of tests specifically for custom modules/themes/profiles.
  50. #
  51. # .
  52. # ├── docroot
  53. # │ ├── core
  54. # ├── tests
  55. # │ ├── Nightwatch
  56. # │ │ ├── Tests
  57. # │ │ │ ├── myTest.js
  58. #
  59. # and then set DRUPAL_NIGHTWATCH_SEARCH_DIRECTORY=../
  60. #
  61. #DRUPAL_NIGHTWATCH_SEARCH_DIRECTORY=
  62. # Filter directories to look for tests. This uses minimatch syntax.
  63. # Separate folders with a comma.
  64. DRUPAL_NIGHTWATCH_IGNORE_DIRECTORIES=node_modules,vendor,.*,sites/*/files,sites/*/private,sites/simpletest