Content deleted Content added
m →References: http→https for Google Books and Google News using AWB |
mNo edit summary |
||
(23 intermediate revisions by 18 users not shown) | |||
Line 1:
{{Short description|Extent to which software can be tested}}
{{more footnotes|date=September 2014}}
'''Software testability''' is the degree to which a software artifact (
Formally, some systems are testable, and some are not. This classification can be achieved by noticing that, to be testable, for a functionality of the system under test "S", which takes input "I", a computable [[functional predicate]] "V" must exists such that <math>V(S,I)</math> is true when S, given input I, produce a valid output, false otherwise. This function "V" is known as the verification function for the system with input I.
Many software systems are untestable, or not immediately testable. For example, Google's [[ReCAPTCHA]], without having any metadata about the images is not a testable system. Recaptcha, however, can be immediately tested if for each image shown, there is a tag stored elsewhere. Given this meta information, one can test the system.
A lower degree of testability results in increased [[test effort]]. In extreme cases a lack of testability may hinder testing parts of the software or [[software requirements]] <u>at all</u>.▼
Therefore, testability is often thought of as an [[extrinsic]] property which results from interdependency of the software to be tested and the test goals, test methods used, and test resources (i.e., the test context). Even though testability can not be measured directly (such as software size) it should be considered an [[intrinsic]] property of a software artifact because it is highly correlated with other key software qualities such as encapsulation, coupling, cohesion, and redundancy.
The correlation of 'testability' to good design can be observed by seeing that code that has weak cohesion, tight coupling, redundancy and lack of encapsulation is difficult to test.<ref name="DesignPatternsExplained2ndEd">{{cite book | last1=Shalloway | first1=Alan | last2=Trott | first2=Jim | title=Design Patterns Explained, 2nd Ed | page=[https://archive.org/details/isbn_9780321247148/page/133 133] | year=2004 | isbn=978-0321247148 | url-access=registration | url=https://archive.org/details/isbn_9780321247148/page/133 }}</ref>
▲A lower degree of testability results in increased [[test effort]]. In extreme cases a lack of testability may hinder testing parts of the software or [[software requirements]] <u>at all</u>.
== Background ==
Line 31 ⟶ 35:
The testability of software components can be improved by:
* [[Test-driven development]]
* [[Design for testing|Design for testability]] (similar to [[design for test]] in the hardware ___domain)
== Testability of requirements ==
Line 64 ⟶ 56:
== See also ==
{{Portal|Software Testing}}▼
* [[Testability]]
== References ==
{{Reflist}}
* Robert V. Binder: Testing Object-Oriented Systems: Models, Patterns, and Tools, {{ISBN
* Stefan Jungmayr: [https://web.archive.org/web/20071009021801/http://www.dissertation.de/index.php3?active_document=
* Wanderlei Souza: [http://
* Boris Beizer: [https://books.google.com/books?id=Ixf97h356zcC], Software Testing Techniques
[[Category:Software testing]]
[[Category:Software quality]]
|