Anmol Verma·2 days agoWrite unit tests and UI tests in your Kotlin Multiplatform app!Recently I have been writing a lot of Kotlin code, and with the code comes the responsibility of delivering high quality and maintainable codebase. Ever since Kotlin Multiplatform aka KMP was released to developers I have been playing around with the expect’s and actual’s. So getting directly into what type…Tdd3 min readTdd3 min read
Kenneth KouseninThe Pragmatic Programmers·22 hours agoMember-onlyGotta Mock ’Em All!Or, Why Does Mockito’s ArgumentMatchers Class Need an eq Method? — The Mockito testing framework lets you test classes by creating mock objects for their dependencies. Then you set the expectations on those objects by specifying exactly what their methods should return when invoked. The eq()method is one of the ArgumentMatchers, which is a class that lets you specify more generally…Tdd5 min readTdd5 min read
Aditi Dosi·2 days agoWhat Are BDD & TDD?Test-driven development typically involves writing a test for a certain piece of functionality, running the test to see it fail and then writing the code to make the test pass. That way, developers can be confident that they’ve written code that does the job and other developers reusing components can…Tdd5 min readTdd5 min read
Jayson Mulwa·3 days agoTo refactor or Not to refactor: Demystifying the metaphysics of refactoring with Decision Theory.“Ukiguza hio tutalala hapa”. This is a common Swahili/ Sheng phrase among the Kenyan tech community which loosely translates to “Please don’t touch anything, we might spend the night fixing things if you do”. I find the phrase comical, almost a meme, by the virtue that is it very relatable…Tdd6 min readTdd6 min read
Jason Mitchell·3 days agoHandling JWT authentication with ASP.NET Core TestServerWhen writing APIs using ASP.NET Core we can use the excellent Microsoft.AspNetCore.TestHost or Microsoft.AspNetCore.Mvc.Testing packages to write tests which execute the API endpoints themselves in a test server. This allows us to easily write tests which integrate all layers of our API. …Tdd3 min readTdd3 min read
Nélson RangelinOneFootball Tech·5 days agoData polling and DOM comparison with React, guided by testsA football match is composed of many different events. Before a match begins, for instance, football fans crave details about line-ups, previous matches’ results, and related news. …Tdd10 min readTdd10 min read
Balaji Venkatachalam·5 days agoIntroduction to Test-Driven Development (TDD): Benefits and Best Practices in FlutterIntroduction: Test-driven development (TDD) is a software development methodology that emphasizes writing tests before writing the actual code. In this article, we will explore the concept of TDD and its benefits, as well as discuss best practices for implementing TDD in Flutter. We will also include code snippets to illustrate…Tdd3 min readTdd3 min read
Diego Marcher·May 29The Power of Unit Testing in Android DevelopmentIntroduction Unit testing plays a pivotal role in ensuring the quality and reliability of Android applications. As an Android expert, I have witnessed firsthand the transformative impact of unit testing on the development process. In this article, we will explore the benefits of unit testing in Android development, from basic to…Tdd5 min readTdd5 min read
Debapriya Basu·May 28Get ready with Python[Part-9]Testing is an essential component in quality assurance and ensures our software, applications, and websites work as expected. A well-written test case eventually provides good coverage, reusability, better user experience, reduces costs, and increases overall satisfaction. Types of testsTdd5 min readTdd5 min read
Matteo CapitaniinMLearning.ai·May 28Member-onlyZ-test for a population mean, experimenting with CIntroduction After the previous article, I want to improve the function behavior by further testing the input. Additionally, I want to experiment with Python-C binding to assess the possible performance gains by optimizing the heaviest numerical calculations. As in the previous post, I plan to use a Test-Driven Development approach. Step I I…Tdd5 min readTdd5 min read