Software Testing Strategies
Ensuring Quality, Reliability, and Confidence in Software
Understanding Software Testing
(many E2E, few unit tests).
What is the difference between unit and integration tests?
Unit tests test individual functions/classes in isolation, using mocks for dependencies. They're fast, focused, and
possible. Use mocks for dependencies, not the code under test. Common
What is the difference between black box and white box testing?
Black box testing tests functionality without knowing internal implementation - like a user would use it. White box testing
Frequently asked questions
What is deep learning?
Deep learning is a family of machine learning methods that use multi-layer neural networks.
How do I test async code?
Testing asynchronous code requires careful consideration, often involving techniques like using promises, async/await within your tests, or leveraging done callbacks to manage the completion of asynchronous operations.
Test async code by: using async/await in?
To test asynchronous code effectively, you can utilize `async/await` syntax within your test functions, ensuring that promises are properly returned or handled, and employing fake timers to simulate time-based behavior when necessary.
frameworks support async tests. Mock asy?
Modern testing frameworks increasingly offer support for asynchronous tests, allowing you to mock asynchronous dependencies effectively, use fake timers for simulating time-dependent code, and thoroughly test both successful and error scenarios.
▶ Try it live
Everything above runs in your browser — open Earthquake Wave Propagation Simulation and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.