Unit Testing Archive

Are your Mocks Mocking at You?

Ever since J.B. Rainsberger’s ‘integrated tests are a scam’, many developers try to get rid of their massively integrated tests and test their units in isolation. Co-operation of units is tested with mocks and stubs. But –

Mocking C++with Trompeloeil

Trompeloeil is an open source mocking framework for C++, aimed at ease of use without sacrificing expressive power. In arts, trompeloeil is intended to mock your mind, making you believe you see something that isn’t what it

How to Test Time In Java

We all know we should have unit tests for most of our Java code. But how do you test your functionalities that are depending on time?

How to test static_assert?

This talk will demonstrate several options for testing static_assert, ranging from the build system, over the compiler features to template meta programming. It will include real-life examples from sqlpp11.

Mutation Testing in Python

Mutation testing is a technique for systematically mutating source code in order to validate test suites. It makes small changes to a program’s source code and then runs a test suite; if the test suite ever succeeds