unit tests
Small function checks
Unit tests are automated checks that verify whether small, isolated pieces of code work as intended.
Each test targets a specific function or component, confirming it produces expected outputs for given inputs.
Developers run unit tests frequently during development to catch bugs early: The build failed because three unit tests broke after refactoring.
The practice is fundamental to test-driven development.
- assertionsStatements presented as true
- stubbingStriking extremity accidentally
- fixturesPermanently attached equipment
- validationConfirming truth or accuracy
- robustnessResistance to failure
verifications · codebase · software development · functionality · quality assurance · mocking · error handling · linting · modularity · edge cases · refactoring · code smell · peer reviews · isolate · technical debt · Selenium · encapsulation · pull requests
- teachingteaching, lesson plans, instructing, educating, courses
- examsexam, quiz, final exam, midterm, finals
- school testsexam, quiz, pop quiz, final exam, pretest
- Test Preppractice exams, past papers, pretest, timed practice, flashcards
- software developmentcoding, programming, bug, debug, debugging
- developer toolsIDE, debugger, compiler, analyzer, text editor