How do you measure the quality of your unit tests? How to Measure the Quality of Your Unit Tests In software development unit tests play a critical role in ensuring that individual components of your application 3 min read 09-10-2024 7
PHPUnit: how do I mock multiple method calls with multiple arguments? PHP Unit How to Mock Multiple Method Calls with Multiple Arguments Understanding the Problem When working with unit tests in PHP especially using PHP Unit you o 3 min read 08-10-2024 4
Is there a way to simulate connection timeout in test? Simulating Connection Timeouts in Your Tests A Guide to Robust Testing Problem In software development its crucial to ensure your application behaves gracefully 2 min read 06-10-2024 9
Stubbing requests in ActiveJob for jobs enqueued by other jobs using Rails, Rspec, and WebMock Stubbing Requests in Active Job for Jobs Enqueued by Other Jobs in Rails R Spec and Web Mock When working with background jobs in a Ruby on Rails application it 3 min read 23-09-2024 14
Can I write one expectation in RSpec which demands a method is called only once with specific arguments? R Spec Expectations Ensuring a Method is Called Once with Specific Arguments When writing tests in R Spec you might encounter situations where you need to ensur 2 min read 16-09-2024 19
Maintaining test isolation and not testing implementation with API wrappers Maintaining Test Isolation Avoiding Implementation Testing with API Wrappers When developing software especially in a microservices architecture or when using A 3 min read 15-09-2024 18
How to test 2 methods with common logic? Testing Shared Logic A Practical Guide for Swift Developers When writing unit tests you often encounter situations where multiple methods share common logic Thi 2 min read 06-09-2024 22
Would it still TDD if I would plan and list (as comment) all test ahead? TDD vs Pre Planning Walking the Tightrope of Testing Test Driven Development TDD is a popular software development practice that advocates writing tests before 2 min read 03-09-2024 19
How to set an EXPECT_CALL to a mock object that is just created? Setting EXPECT CALL on a Newly Created Mock Object A Googletest Conundrum Googletests EXPECT CALL mechanism is powerful allowing you to define expected interact 3 min read 29-08-2024 19
TDD, Unit Test and mocks injection: What about the Single Responsability principle? h1 TDD Unit Test and Mocks Balancing Testability and Single Responsibility h1 The Dilemma Testability vs Single Responsibility In the world of software developm 3 min read 28-08-2024 29