SDP Slides For Group IJ
SDP Slides For Group IJ
GROUP IJ
Testing
Is the process of ensuring that a program does what its
supposed to do and discover program defects.
UNIT TESTING:
Unit testing is the first level of testing. At this stage, developers test
individual units of the system to make sure that they are usable.
Unit: This is the smallest software component that usually performs
a single cohesive function.
Disadvantages:
• Can be complex and challenging, especially for
large and complex systems.
• This testing is time consuming process than another
testing techniques since it checks the entire product
or software.
TEST DRIVEN DEVELOPMENT
INTRODUCTION TO TDD
• TDD is a software development process where tests
are written before the code, guiding the development
process.
• TDD was introduced as part of a larger software
design known as Extreme Programming(XP), which is
part of the Agile development methodology.
• TDD interlaces unit testing, programming and
refactoring on source code during software
development.
THE STEPS TAKEN IN TDD
1.Add a test – Write a test case that describe the function completely.
2.Run all the test cases and make sure that the new test case fails.
3.Write the code that passes the test case
4.Run the test cases
5.Refactor code – This is done to remove duplication of code.
6.Repeat the above mentioned steps again and again
THE TDD PROCESS OVERVIEW
What is a scenario ?
• Is a story that describes one way in which the system might be
used.