Tutorials and resources on how to apply unit testing in software testing

JUnit 5 Parameterized

January 30, 2018 0

The possibilities to write parametrized tests have changed and improved a lot with the release of JUnit 5, the open source unit testing tool for Java. In his blog post “Using JUnit 5 Parameterized Tests, Argument Sources and Converters”, Micha Kops provides an overview covers all new types of parameter sources for JUnit 5 tests as well as the new conversion API for test arguments.

Mockito 2 – The Return of the King

January 11, 2018 0

Probably there is no Java developer in the world who writes tests and haven’t heard about Mockito. That most popular mocking framework for Java will be celebrating its 10th birthday soon. However, I don’t plan to brood the history. At the end of 2016 the new and shiny Mockito 2 has been released.

Testing on the JVM with JUnit5

December 4, 2017 0

JUnit 5 is the next generation of JUnit. The goal is to create an up-to-date foundation for developer-side testing on the JVM. This includes focusing on Java 8 and above, as well as enabling many different styles of testing.

Mixing Tests and Production Code With Doctest

October 25, 2017 0

doctest is a fully open source light and feature-rich C++98 / C++11 single-header testing framework for unit tests and TDD. It is inspired by the unittest {} functionality of the D programming language and Python’s docstrings. Tests can be considered a form of documentation and should be able to reside near the production code which they test. This is not possible (or at least practical) with any other testing framework for C++.

Scaling xUnit Test Runners

October 19, 2017 0

xUnit test runners are one of the basic capabilities of rapid iterative development practices such as Continuous Integration and Test Driven Development. This presentation explores how test runners are generally implemented in modern programming languages like PHP, JavaScript and Ruby.

A Baseline Approach to Software Testing

October 9, 2017 0

Unit testing and Test-Driven-Development (TDD) are an important part of every Agile software testing strategy. One of the issue associated to these techniques is the coupling between the source code and its tests. In his blog post, Tingan Ho presents a testing strategy, called Baseline Testing, that should solve the coupling issues with TDD.

Using Equivalence Partitioning in Software Testing

October 3, 2017 4

Equivalence partitioning is a software testing technique that can be used during test design to divide the test data into sets of equivalent data called partitions from which you can build your test cases. In this extract from her book “Guide to Advanced Software Testing”, Anne Mette Hass provides an introduction to the concept of equivalence partitioning.

1 2 3 4 27