Week 11

JEST

Test Driven Development


Test Driven Development is a software development process that relies on the repetition of a very short development cycle. Requirements are turned in to very specific test cases, then the code is improved so that the tests pass. This is opposed to software development that allows code to be added that is not proven to meet requirements.  

Test Driven Development Cycle

  1. Add a test
  2. Run all tests and see if the new test fails
  3. Write the code 
  4. Run tests
  5. Refactor Code


Context of Testing

  • Valid Inputs
  • Invalid Inputs
  • Errors, Exception and Events
  • Boundary Conditions
  • Every thing that might be risk

Benefits of Test Driven Development

  • Much less debug time
  • Code proven to meet requirements 
  • Tests become safety net
  • Near zero defects
  • Shorter development cycles
References : 
https://www.tutorialspoint.com/software_testing_dictionary/test_driven_development.htm 
https://en.wikipedia.org/wiki/Test-driven_development 


 Jest


Jest is a JavaScript testing framework maintained by Facebook.  with a focus on simplicity. It works with projects using Bable, Typescript, Node Js, React, Angular and VUE Js. 

No comments:

Post a Comment

What is an Application Framework

What is an Application Framework? Simply application framework is an software framework use to implement standard structure of software....