© 2022 Hashnode
TL;DR: Don't leave a hardcoded mess on IFs. Problems Testability Hardcoded values Open/Closed Principle Violation Solutions Replace all IFs with a dynamic condition or polymorphism. Context Ha…
Hi! We all know that tests are important, but do you know about black box testing, white box testing, and mutation testing? This article helps you understand a bit more about that. Black Box testing B…
As software developers, it is critical to lower the chances of our program failing by running tests with the end-user in mind and testing your application the same way they would use it. It's impracti…
Writing tests that check that a value you don't control has changed is a weird thing. To help out, RSpec provides a change matcher that can help make things easier. Let's look at an example of how we can use the change matcher to create mo…
TDD Test driven development TDD = Test first development + Refactor Why TDD TDD will force developer to write a clean code. Your code will be tested before it went to deployment. So the chances of ge…
Olá! Imagino que você tenha ouvido falar bastante sobre TDD e esteja interessado em aprender e praticar os famosos testes de desenvolvimento. Esse texto tem o objetivo de te ajudar nisso! Primeiramen…
Here is a list of articles about tech that I have found interesting during the month of April. Enjoy ! Nodejs / Typescript / Javascript A nice thread about typescript tips & tricks Type annotations h…
Probably you already heard about unit tests, integration tests, functional tests, end to end tests, etc. But, have you ever heard about mutation tests? Mutation tests are one of the ways you have to v…
Everyone is always going on about "test driven development" and unit tests and whatnot. So here is a practical guide on how to set up CodeClimate with your Ruby on Rails application so you can keep tr…
The goal of unit testing is to ensure that your application behaves as expected. However, many unit tests miss the mark, neglecting to provide value to the business and failing to discover defects in …