Load Testing GraphQL Performance With k6 and StepZen | by Roy Derks | Jun, 2022

A brief guide to easier load testing For many companies, performance is the main reason to go with GraphQL. But is that a valid argument? Often developers compare GraphQL to REST APIs and see the N+1 requests (or overfetching) as an important reason to choose GraphQL. Let’s put that to the test and explore if … Read more

Component Testing of Frontends with Karate, Part 2

In my previous article, I highlighted the nature of component tests. Their scope should be a single executable where all external dependencies have been replaced by configurable test doubles. Rich front-end applications are a good candidate for such tests. The backend they interact with should return predictable and easily configurable responses to cater to relevant … Read more

Testing Your IaC Using Terratest

Setting Up infrastructure manually can be a time-consuming and hectic process. That is when we can make use of Infrastructure as Code (IaC) tools to automate the infrastructure. IaC automation can be done for any kind of Infrastructure ie, virtual machine, storage, etc. As more and more infrastructure becomes code, it is essential to have … Read more

Extracting Lazily Loaded Elements for UI Testing in a SwiftUI iOS App | by Andronick Martusheff | Jun, 2022

Build robust SwiftUI apps Photo by Devon Janse van Rensburg on Unsplash Lazy loading is a powerful optimization technique used by online apps where data is loaded on-demand, and not monolithically. Online apps are constantly sending and receiving data, and any means of cutting down the amount of unnecessarily transacted data is beneficial to both … Read more

Exhaustive JUNIT5 Testing with Combinations, Permutations, and Products

Test Support Libraries There are many libraries that make testing better in different aspects. Here are some of them: Agitar One Agitator automatically creates dynamic test cases, synthesizes sets of input data, and analyzes the results. Chaos Monkey Chaos Monkey is responsible for randomly terminating instances in production to ensure that engineers implement their services … Read more

java – Problems with connecting H2 database for testing in spring boot

[*] I want to connect h2 database to my test for JPA repository testing, but I am getting an error and don’t understand where it comes from. My test: @DataJpaTest class RepositoryTest{ @Autowired lateinit var entityManager: TestEntityManager @Autowired lateinit var dataSource: DataSource @Autowired lateinit var repository: Repository @Test fun `context loads`(){ Assertions.assertNotNull(entityManager) Assertions.assertNotNull(dataSource) } } … Read more

RxJS Testing — Write Unit Tests for Observables | by Denis Loh | Jun, 2022

Advance your unit testing skills by writing tests with the RxJS testing features. Photo by Davyn Ben on Unsplash RxJS is a very powerful and a cool set of tools to create reactive apps. When developing angular applications you will be very likely faced with RxJS, so I assume, you are familiar with how to … Read more

How to Perform Visual Regression Testing Using Playwright

Regression testing verifies that system changes do not interfere with existing features or code structure. They are part of almost every test suite in software development lifecycles. It is common for developers to change or add a code section and unintentionally disrupt something that is working just fine. Visual regression testing functions on the same … Read more

Let’s Smell Some Tests #3 — Testing Randomness in Java | by Krystian Szpiczakowski | May, 2022

Why you should avoid testing non-deterministic behavior Photo by Lucas George Wendt on Unsplash Hello, and welcome to the fourth article of the “Let’s Smell Some Tests” series. In the previous episode¹, we were looking at tests that exercised internal behavior, and we pointed out the drawbacks of this approach. Today, we’re going to analyze … Read more