Drupal Testing

Introduction

The first thing to do is to enable the Contributor and Developer blocks in your Drupal.org profile.
My account > Edit > Contributor link / Developer link

Patches

Reviewing Patches

Patches are pieces of code that solve an issue either in Drupal core or a contributed module. Patches describe the changes between a before and after state of either a module or core.

Patches include only the exact changes that were made.
More about Drupal patches

Creating Patches

  1. Create a working copy of the file (example.module copied to exampleNew.module) you are editing in the same directory as the original.
  2. Edit the working copy (exampleNew.module) and save it.
  3. Enter the command: diff -up /path/to/file/example.module path/to/file/exampleNew.module > mypatchname.patch.
  4. You can attach file mypatchname.patch in a Drupal project's issue thread.

Submitting patches

  1. Search the issue queue, because maybe someone else already made a patch.
  2. Always post against the most recent development version.
  3. The code must be close to coding standards.
  4. Describe the changes
  5. Name your patch: For example module-description-issue#comment#.patch
  6. Verify your patch
  7. Submit your patch through a bug report or feature request.
Bibliography
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.