Posts
Showing posts with the label testing
Getting started with Github Actions: Run JUnit 5 tests in a Java project with Maven
- Get link
- X
- Other Apps
Github Actions is a CI/CD service provided by Github and it is free for public repositories. For private repositories, each GitHub account receives a certain amount of free minutes and storage, depending on the product used with the account. In this blog post, you will learn how to create a simple workflow for running JUnit 5 tests in a Maven based Java project and how to add a build status badge to a README.md file.
Quarkus tests with Testcontainers and PostgreSQL
- Get link
- X
- Other Apps
Testcontainers is a Java library that allows integrating Docker containers in JUnit tests with ease. In a Containerized World , there is little sense to complicate the tests configuration with embedded databases and services. Instead, use run your services in Docker and let the Testcontainers manage this for you. So if you are need Redis, MongoDB or PostgreSQL in your tests - Testcontainers may become your good friend. In this blog post you will learn how to configure Testcontainers to manage PostgreSQL instance in Quarkus integration tests.
Parameterized integration tests with Spring JUnit Rules
- Get link
- X
- Other Apps

Spring 4.2 comes with brand new JUnit rules: SpringClassRule and SpringMethodRule . The main advantage of using JUnit rules is to let developers get rid of SpringJUnit4ClassRunner and utilize different JUnit runners in Spring integration tests. I think the biggest opportunity with Spring JUnit Rules is the ease of creating parameterized integration tests.
Sahi Script Samples from my presentation at TrojQA
- Get link
- X
- Other Apps
Sahi is an web automation tool that can be used to test modern web applications in a variety of browsers. Sahi comes in two flavors: open-source and commercial. Some of the key Sahi features include: recording on most modern browsers - including Internet Explorer, automatic AJAX waits easy to learn and robust scripting - Sahi Script built-in tools like reporting, logging etc. This blog post contains some code snippets of Sahi Script that I presented during my talk at TrojQA in 2015. TrojQA is a Tricity (Poland) community focused on software testing and quality assurance. If you are interested in learning more about Sahi, please visit its official website here: http://sahipro.com/ . Sahi Script Sahi Script is a scripting language based on JavaScript. The main difference from JavaScript is that in Sahi Script variables must be prefixed with $ . _include("StringUtils.js") var _system = (function () { var getenv = function ($name, $default) { var $...
Groovier Spring Boot Integration Testing
- Get link
- X
- Other Apps
Recently I had a chance to use Groovy’s groovy.json.JsonSlurper in a soapUI REST project. The usage scenario in soapUI (in particular, soapUI Open Source) was very simple: in a Groovy assertion, load the content of a response into a variable and than verify it like this: import groovy.json.JsonSlurper; def slurper = new JsonSlurper() def result = slurper.parseText(messageExchange.responseContent) assert result.incidentType == 'Lorem ipsum' This works well in soapUI. But what about Spring Boot integration tests? Can I make integration testing of REST API groovier?