Skip to content

WPO-Foundation/webpagetest

master
Switch branches/tags
Code

Files

Permalink
Failed to load latest commit information.

WebPageTest

This is the official repository for the performance-testing code that runs at webpagetest.org.

Troubleshooting private instances

If your instance runs, but you’re having issues configuring agents, navigate to http://{your_instance’s_ip}/install to check for a valid configuration.

Testing

WebPageTest uses PHPUnit for unit tests. To set up and run the unit tests:

  1. Install Composer
  2. Run composer install
  3. Run composer test

Contributing

There are separate lines of development under different licenses (pull requests accepted to either):

Code style

WebPageTest uses PSR12 coding conventions for PHP and Prettier defaults for JavaScript and CSS. Before you send a pull request please make sure to run: composer format.

Alternatively you can run composer format:php if you only touched PHP code composer format:prettier if you only touched CSS or JavaScript code

VSCode integration

If you use VSCode you might find it helpful to install Prettier and PHP Intelephence plugins and use these in your "settings.json":

{
  "[php]": {
    "editor.tabSize": 4
  },

  // uncomment to reformat on every file save
  //"editor.formatOnSave": true,

  "phpcs.standard": "PSR12",

  "files.trimTrailingWhitespace": true,

  "files.eol": "\n",

  "files.associations": {
    "*.inc": "php"
  }
}