Red-Green-Refactor workflow - The red, green, refactor approach helps developers compartmentalize their focus into three phases: Red — think about what you want to develop. Green — think about how to make your tests pass. Refactor — think about how to improve your existing implementation
What is Jest- Jest is a JavaScript testing framework designed to ensure correctness of any JavaScript codebase. It allows you to write tests with an approachable, familiar and feature-rich API that gives you results quickly
Why unit test - Unit tests make it safer and easier to refactor the code by putting tests into place that make sure refactoring occurs without problems and disruption. It takes the risk out of changing older source code. Doing unit tests is essentially doing quality assurance of the code.
How can Jest's beforeEach() and afterEach() functions improve our tests? - beforeEach: Runs a function before each test when a file runs. If a function returns a promise or is a generator, Jest waits for the promise to resolve before running the test. afterEach: Runs a function after each test when a file completes
Project Name: Pig Dice Game
Description: Writing unit tests using Jest
Timothy Opiyo Owiyo:
ISTQB Certified, aggressive and multi skill professional with 5 years experience in Telecommunication industry and repeated success in Quality Assurance, project management and stakeholder management.Designs test plans and procedures and equips and trains newer colleagues. Demonstrates practiced expertise in product design and participates in design reviews to offer early input on functional requirements and potential problems.Resourceful in defining required tests, running tests, gathering test data and identifying defects. Adept at providing thorough feedback to developers and developing and implementing quality assurance metrics.Reliable and hardworking with effective oral and written communication skills.
- Experience with Test Management tools like Micro focus ALM , Micro focus Octane and JIRA
- Expertise in Performance Testing using JMeter with certification in Performance Testing
- Has knowledge in DevOps,Agile and Perfomance engineering
The web application code can be clonned from: https://github.com/TOwiyo/Week-4-Mini-apps.git
https://github.com/TOwiyo/Week-4-Mini-apps.git
- HTML
- JavaScript
+254721154056