Search Results for: unit testing

How To Perform UNIT TESTING using Mockito Framework :-

Reading Time: 4 minutes While working on a code we intend to make it functional. But it is equally important that we make sure our code works the way we intended it to. And we can achieve that by witting unit test cases. In this blog, we will cover the same by considering two testing scenarios. First, where the method is independent. Second, where it is dependent on some Continue Reading

Java Unit Testing with JUnit 5

Reading Time: 4 minutes This blog will help you to have a knowledge of Java Unit Testing with JUnit 5. What is Unit Testing? A Unit Test is a piece of code written by a developer to test certain functionality of code. The Class which we want to test is called System/Class Under Test. The method which is written in the class which the developer wants to test is Continue Reading

Unit testing with Mockito Framework

Reading Time: 3 minutes In this blog, we are going to learn about how we can use mockito framework to perform unit testing. Mockito framework provides us several methods which we can use to perform unit test. What is Unit Testing Unit testing is a software testing technique in which we only test a single component of the software. We ignore the output of the dependent module and test Continue Reading

How to do Unit testing using embedded PostgreSQL in Akka

Reading Time: 2 minutes Embedded PostgreSQL provides a platform neutral way for running PostgreSQL binary in unit tests. It is an efficient database to write test cases as it supports all data types of PostgreSQL. In this blog I will not dive deep in the features of Embedded PostgreSQL but rather focus on it’s integration with an Akka application. I have added a sample project for the better understanding. Continue Reading

ANOTHER LOOK INTO UNIT TESTING AND INTEGRATION TESTING

Reading Time: 3 minutes Software testing is the process of verifying and validating , the developed software that works according to expectations or not. We already know that no code is perfect and completely bug-free. Also, in this fast-changing era every now and then various features are added which only increases the chances of getting bugs. Hence, the code is changed and improvised regularly to minimise the bugs, add Continue Reading

How to write unit test in Scala ZIO

Reading Time: 3 minutes ZIO is a Scala library for creating asynchronous, concurrent, and fault-tolerant applications. It is based on the concept of “effects” and provides a powerful and flexible way to express and compose computations that may have side effects, such as reading from a file, writing to a database, or making an HTTP request. ZIO offers a full-featured ecosystem for building applications, including libraries for common tasks Continue Reading

TestNG Vs JUnit | Which one is the Best?

Reading Time: 5 minutes Hello Everyone, in this blog we will see the difference between TestNg and JUnit. TestNG Vs JUnit – What’s the Difference? TestNG and JUnit are two very popular terms spoken amongst the testers simply because they are used very heavily in the community. They are the most popular testing frameworks for Java applications. Both TestNG and Junit are Testing frameworks used for Unit Testing. Let’s Continue Reading

Introduction to Spock: A Unit Testing Framework

Reading Time: 4 minutes This article talks about the Spock framework. It’s a framework for writing unit test cases in BDD style.

Test Cases in Rust are simple to write

Reading Time: 4 minutes Rust has been the most loved programming language for the last five years in a row. Rust is a low-level statically-typed multi-paradigm programming language that’s focused on safety and performance. Rust solves problems that C/C++ has been struggling with for a long time, such as memory errors and building concurrent programs. Due to the borrow checker, Rust can prevent data races at compile-time. Data races occur when Continue Reading

Unit testing void methods with Mockito and JUnit

Reading Time: 3 minutes Writing functionality is the main focus whenever we are writing a software program, but it is equally important that we make sure our code works the way we intended it to. And how do we do that? By writing unit test cases. They are used to test the smallest functionality of code. Unit test cases are an essential part of software development. In this blog, Continue Reading

Problems In Appium Tool Installation With Ubuntu

Reading Time: 4 minutes In this blog, we try to solve the Problems which generally people face during the Appium tool Installation with the ubuntu(Linux-based) operating system. Appium tool is an open-source, cross-platform automation testing tool, and therefore we use the Appium tool in testing native applications, mobile-web applications, and hybrid applications using a web driver. The Appium server is a script in Node.js and Appium tool is also Continue Reading

Basic Introduction to Unit Testing in Angular

Reading Time: 6 minutes What is Unit Testing? Unit testing is testing a unit in an isolated environment. A unit can be a class, component, service, directive module, etc. which can be logically separated from the software. Any unit in an app is not isolated, it’s quite normal that it will be depending on the other units in an application for resources like data or methods. So if we Continue Reading

Parameterized Tests In Junit

Reading Time: 2 minutes 1. Overview So Basically this feature enables us to execute a single test method multiple times with different parameters.In this blog i am going to explore parameterized Tests in depth ,so let’s get started 2. Dependencies In order to use Junit parameterized test first we need to add the dependencies for that if we have maven project then we need to add the maven dependencies for Continue Reading