QA/Mozmill Test Automation/Test Modules Refactor: Difference between revisions
Jump to navigation
Jump to search
Line 34: | Line 34: | ||
Dependencies: Agreed upon style guidelines | Dependencies: Agreed upon style guidelines | ||
== Refactoring == | == Refactoring == | ||
=== Variable Naming === | |||
;Contants | |||
All ''unchanging'' variables should be declared as constants. All constants should be named in ALL_CAPS with whitespace indicated by an underscore (_). All constants should be declared directly the ''required modules'' block and setupModule() function. | |||
Example: | |||
<pre>* ***** END LICENSE BLOCK ***** */ | |||
// Include required modules var utils = require("../../shared-modules/utils"); | |||
const TIMEOUT = 5000; | |||
var setupModule = function() { </pre> |
Revision as of 18:21, 8 November 2010
Overview
Lead: | Anthony Hughes |
Co-workers: | TBD |
Dates: | TBD |
Status: | In process of determining style guidelines |
Repository Location: | TBD |
Tracking Bug(s) | bug 604700 |
Documentation: | Draft Proposal |
Project Details
Summary
The purpose of this project is to ensure all tests are implemented using an agreed style guideline. The workflow of this project will mostly be parallel with the Shared Modules Refactor project. This project will be rolled out in multiple phases.
Phase I
Goal: Refactor "lowest-hanging-fruit" changes
Dependencies: Agreed upon style guidelines
Refactoring
Variable Naming
- Contants
All unchanging variables should be declared as constants. All constants should be named in ALL_CAPS with whitespace indicated by an underscore (_). All constants should be declared directly the required modules block and setupModule() function.
Example:
* ***** END LICENSE BLOCK ***** */ // Include required modules var utils = require("../../shared-modules/utils"); const TIMEOUT = 5000; var setupModule = function() {