Upgrade to remove ads
Test Driven Development (TDD)/Unit Testing
Terms in this set (12)
a software development process that relies on the repetition of a very short development cycle: first the developer writes an (initially failing) automated test case that defines a desired improvement or new function, then produces the minimum amount of code to pass that test, and finally refactors the new code to acceptable standards.
sequence of TDD
-Add a test
-Run all tests and see if the new one fails
-Write some code
benefits of tdd
helps ensure that the application is written for testability, as the developers must consider how to test the application from the outset rather than adding it later. It also ensures that tests for every feature get written
what is a unit in tdd
most commonly a class, or a module (group of related functions)
how should a test be structured?
set up, act, assert, clean up
what is the view on dependancies between unit tests?
never base a unit test on another's results. should start from and idependant and standard place
does not perform sufficient testing in situations where full functional tests are required to determine success or failure, due to extensive use of unit tests.
- apps w/ databases
- user interfaces
a test-specific capability that substitutes for a system capability, typically a class or function, that the UUT depends on (mock, stub, dummy, spy, simulator)
simplest form of a test double. It facilitates linker time substitution by providing a default return value where required.
adds simplistic logic to a dummy, providing different outputs.
captures and makes available parameter and state information, publishing accessors to test code for private information allowing for more advanced state validation
specified by an individual test case to validate test-specific behavior, checking parameter values and call sequencing
THIS SET IS OFTEN IN FOLDERS WITH...
C# (Programming Language)
Object Oriented Programming
YOU MIGHT ALSO LIKE...
CPSC 310 Midterm
CMPS 115 Test 3
Software Engineering Exam 2
OTHER SETS BY THIS CREATOR
Chapter 16.3 - 16.4: Offline Web Apps - FileSystem…
Chapter 16.1 - 16.2: Offline Web Applications (Web…
Chapter 10: WebSockets
Chapter 8: Websites and Services