PageSourceSearch

https://riskfirst.org/assets/js/c0ff92f4.fadabd09.js

js riskfirst.org collected 2026-09-25 22:08:37 UTC 7,407 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkrf_website=globalThis.webpackChunkrf_website||[]).push([[2049],{47710(e,t,n){n.r(t),n.d(t,{assets:()=>d,contentTitle:()=>o,default:()=>g,frontMatter:()=>r,metadata:()=>i,toc:()=>c});const i=JSON.parse('{"id":"practices/Testing-and-Quality-Assurance/Automated-Testing","title":"Automated Testing","description":"Writing and running tests for individual units or components of the software.","source":"@site/docs/practices/Testing-and-Quality-Assurance/Automated-Testing.md","sourceDirName":"practices/Testing-and-Quality-Assurance","slug":"/practices/Testing-and-Quality-Assurance/Automated-Testing","permalink":"/practices/Testing-and-Quality-Assurance/Automated-Testing","draft":false,"unlisted":false,"editUrl":"https://github.com/risk-first/website/blob/master/docs/practices/Testing-and-Quality-Assurance/Automated-Testing.md","tags":[{"inline":false,"label":"Practice","permalink":"/tags/Practice"},{"inline":false,"label":"Automated Testing","permalink":"/tags/Automated-Testing"}],"version":"current","frontMatter":{"title":"Automated Testing","description":"Writing and running tests for individual units or components of the software.","tags":["Practice","Automated Testing"],"featured":{"class":"c","element":"<action>Automated Test</action>"},"practice":{"aka":["Component Testing","Module Testing"],"mitigates":[{"tag":"Implementation Risk","reason":"Ensures that individual components work correctly and detects regressions early in the development cycle."},{"tag":"Complexity Risk","reason":"Aids in refactoring by ensuring that functionality survives the change."}],"attendant":[{"tag":"Schedule Risk","reason":"Writing and maintaining unit tests can be time-consuming."},{"tag":"Complexity Risk","reason":"Managing a large suite of unit tests can add to the complexity."},{"tag":"Reliability Risk","reason":"Creates dependencies on testing frameworks and tools."},{"tag":"Internal Model Risk","reason":"Unit Testing and code coverage can give false assurances about how a system will work in the real world."}],"related":["../Testing-and-Quality-Assurance/Integration-Testing","../Development-And-Coding/Coding","../Planning-And-Management/Requirements-Capture"]}},"sidebar":"tutorialSidebar","previous":{"title":"Testing and Quality Assurance","permalink":"/practices/Testing-and-Quality-Assurance/Start"},"next":{"title":"Integration Testing","permalink":"/practices/Testing-and-Quality-Assurance/Integration-Testing"}}');var s=n(74848),a=n(28453);const r={title:"Automated Testing",description:"Writing and running tests for individual units or components of the software.",tags:["Practice","Automated Testing"],featured:{class:"c",element:"<action>Automated Test</action>"},practice:{aka:["Component Testing","Module Testing"],mitigates:[{tag:"Implementation Risk",reason:"Ensures that individual components work correctly and detects regressions early in the development cycle."},{tag:"Complexity Risk",reason:"Aids in refactoring by ensuring that functionality survives the change."}],attendant:[{tag:"Schedule Risk",reason:"Writing and maintaining unit tests can be time-consuming."},{tag:"Complexity Risk",reason:"Managing a large suite of unit tests can add to the complexity."},{tag:"Reliability Risk",reason:"Creates dependencies on testing frameworks and tools."},{tag:"Internal Model Risk",reason:"Unit Testing and code coverage can give false assurances about how a system will work in the real world."}],related:["../Testing-and-Quality-Assurance/Integration-Testing","../Development-And-Coding/Coding","../Planning-And-Management/Requirements-Capture"]}},o=void 0,d={},c=[{value:"Description",id:"description",level:2},{value:"Variations",id:"variations",level:2},{value:"Used By",id:"used-by",level:2}];function l(e){const t={a:"a",blockquote:"blockquote",em:"em",h2:"h2",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,a.R)(),...e.components},{MethodList:n,PracticeIntro:i}=t;return n||u("MethodList",!0),i||u("PracticeIntro",!0),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i,{details:r}),"\n",(0,s.jsx)(t.h2,{id:"description",children:"Description"}),"\n",(0,s.jsxs)(t.blockquote,{children:["\n",(0,s.jsxs)(t.p,{children:['"Unit testing is a software testing method by which individual units of source code\u2014sets of one or more computer program modules together with associated control data, usage procedures, and operating procedures\u2014are tested to determine whether they are fit for use." - ',(0,s.jsxs)(t.a,{href:"https://en.wikipedia.org/wiki/Unit_testing",children:["Unit testing, ",(0,s.jsx)(t.em,{children:"Wikipedia"})]})]}),"\n"]}),"\n",(0,s.jsx)(t.p,{children:"Unit testing involves writing and running tests for individual units or components of the softw
1are to ensure they function as expected. This practice helps in identifying and fixing issues early in the development process, making the codebase more reliable and maintainable."}),"\n",(0,s.jsx)(t.h2,{id:"variations",children:"Variations"}),"\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.th,{children:(0,s.jsx)(t.strong,{children:"Test Type"})}),(0,s.jsx)(t.th,{children:(0,s.jsx)(t.strong,{children:"Description"})}),(0,s.jsx)(t.th,{children:(0,s.jsx)(t.strong,{children:"Reference"})})]})}),(0,s.jsxs)(t.tbody,{children:[(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"Unit Testing"})}),(0,s.jsx)(t.td,{children:"Testing individual functions or methods in isolation."}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.a,{href:"https://en.wikipedia.org/wiki/Unit_testing",children:"Unit Testing, Wikipedia"})})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"Component Testing"})}),(0,s.jsx)(t.td,{children:"Testing larger components that may include multiple units."}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.a,{href:"https://en.wikipedia.org/wiki/Component-based_software_engineering#Testing",children:"Component Testing, Wikipedia"})})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"Snapshot Testing"})}),(0,s.jsx)(t.td,{children:"Comparing output against a stored snapshot to detect changes."}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.a,{href:"https://jestjs.io/docs/snapshot-testing",children:"Snapshot Testing, Jest"})})]})]})]}),"\n",(0,s.jsxs)(t.p,{children:["See also: ",(0,s.jsx)(t.a,{href:"/thinking/Development-Process#a-toy-process",children:"Development Process"}),", ",(0,s.jsx)(t.a,{href:"/thinking/Meeting-Reality#example-automation",children:"Unit Testing (Meeting Reality)"})]}),"\n",(0,s.jsx)(t.h2,{id:"used-by",children:"Used By"}),"\n",(0,s.jsx)(n,{tag:"Automated Testing"})]})}function g(e={}){const{wrapper:t}={...(0,a.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(l,{...e})}):l(e)}function u(e,t){throw new Error("Expected "+(t?"component":"object")+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}},28453(e,t,n){n.d(t,{R:()=>r,x:()=>o});var i=n(96540);const s={},a=i.createContext(s);function r(e){const t=i.useContext(a);return i.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:r(e.components),i.createElement(a.Provider,{value:t},e.children)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.