End-to-end test automation is an important part of the development lifecycle of any web based application. Choosing the right tool for you and for your application is arguably even more important. In this guide, we'll take a look at end-to-end testing using Cypress. "End-to-end" testing refers to the...
Guide to Unit Testing Spring Boot REST APIs
Testing the system is an important phase in a Software Development Life Cycle (SDLC). Testing promotes code reliability, robustness, and ensures high-quality software delivered to clients if implemented correctly. Testing has been given more importance ever since Test-Driven Development (TDD) has become a prominent process in developing software. Test-driven development...
Test "mocks" are objects that replace real objects while simulating their functions. A mock also has expectations about how the functions being tested will be used. In some unit test cases we may want to combine the functionality of spies, to observe a method's behavior under call, and...
In software testing, a "spy" records how a function is used when it is tested. This includes how many times it was called, whether it was called with the correct arguments, and what was returned. While tests are primarily used to validate the output of a function, sometimes...
Spring Cloud: Contract
In this article, we'll introduce you to Spring Cloud Contract, which is Spring's response to Consumer-Driven Contracts. Nowadays, applications are thoroughly tested - whether it be unit tests, integration tests, or end-to-end tests. It's very common in a microservice architecture that a service (consumer) communicates with another service (producer) to...
Unit Testing in Java with JUnit 5
JUnit is a popular testing framework for Java. Simple use is very straightforward and JUnit 5 brought some differences and conveniences compared to JUnit 4. The test code is separate from the actual program code, and in most IDEs the testing results/output are also separate from the program's output,...