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
- Add a test
- Run all tests and see if the new test fails
- Write the code
- Run tests
- 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