- Status Assigned
- Percent Complete
- Task Type General Change
- Category Testing
-
Assigned To
Johannes Ahlmann (johannes)
- Operating System All
- Severity Low
- Priority Normal
- Reported Version Development
- Due in Version 0.2.3
- Due Date Undecided
- Votes 0
- Private No
Opened by Johannes Ahlmann (johannes) - 2013-10-23
Last edited by devBert (devBert) - 2014-01-16
FS#57 - make code testable
- modules/classes are not instantiated within same file
- we add init files for panel/config/wizard/...
- each module/class is built by a dependency injection/factory thingey
- all dependencies of the module/class need to be explicitely stated at the beginning/instantiation
before:
(function() {
SHUFU.xyz = ... SHUFU.other ...
})();
after:
function makeXyz(dep1, dep2, dep3) {
return {
xyz = ... dep2 ...
};
}
later:
var xyz = theFactory('xyz');