Change search
ReferencesLink to record
Permanent link

Direct link
Dependency Injection frameworks: an improvement to testability ?
Umeå University, Faculty of Science and Technology, Department of Computing Science.
2015 (English)Independent thesis Basic level (degree of Bachelor), 10 credits / 15 HE creditsStudent thesis
Abstract [en]

Testing is a crucial part of any software project. Its importance can be seen in the increasing amount of developer striving towards producing code with higher testability, thus being able to verify and validate the functionality of their systems. The design and structure of the code is thereby very important, to incorporate testability at a satisfying level. Dependency-Injection(DI) is a way of reversing the dependency flow between objects in a system, to make them more isolated and easier to test. As DI will help the developer to build code in a good objectoriented way by promoting thought through structure, this will lead to higher testability in the produced code.

This report gives a overview of what testability is, if it can be measured and if DI frameworks can be beneficial from a testability point of view. By drawing conclusions on previous studies and work done in this field, these questions have been answered. Also a system for calculating dependency and coupling between objects is also presented, and shows that the conceptual use of DI gives more testability. The paper concludes that the use of DI frameworks will be beneficial for a systems testability, although DI itself is the major factor and not the frameworks. However as the frameworks make the use of DI that much easier there will be a significant increase in testability with the use of them.

Place, publisher, year, edition, pages
2015. , 38 p.
, UMNAD, 1030
National Category
Engineering and Technology
URN: urn:nbn:se:umu:diva-108379OAI: diva2:852739
External cooperation
Tieto Sweden
Educational program
Bachelor of Science Programme in Computing Science
Available from: 2015-09-10 Created: 2015-09-10 Last updated: 2015-09-10Bibliographically approved

Open Access in DiVA

fulltext(615 kB)80 downloads
File information
File name FULLTEXT01.pdfFile size 615 kBChecksum SHA-512
Type fulltextMimetype application/pdf

By organisation
Department of Computing Science
Engineering and Technology

Search outside of DiVA

GoogleGoogle Scholar
Total: 80 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

Total: 185 hits
ReferencesLink to record
Permanent link

Direct link