Frama-C Industrial Usage

Published January 24th, 2011 Under Unit Testing | Comments Off

This video presents some industrial applications of the Frama-C platform by Dassault Aviation. Frama-C is a suite of open source tools dedicated to the analysis of the source code of software written in C. Frama-C gathers several static analysis techniques in a single collaborative framework. The collaborative approach of Frama-C allows static analyzers to build upon the results already computed by other analyzers in the framework. Thanks to this approach, Frama-C provides sophisticated tools, such as a slicer and dependency analysis.

CMake/CPack/CTest/CDash Open Source Tools to Build Test and Deploy C++ Software

Published November 15th, 2010 Under Continuous Integration | Comments Off

This talk will cover the history and features of CMake, CTest, CDash and CPack in the context of a integrated development environment.

C++ And TDD: Getting Started

Published October 20th, 2010 Under Unit Testing | Comments Off

This video provides a demonstration of Test-Driven Development (TDD) in C++ using the Eclipse CDT and CppUTest.

Rethinking Unit Testing in C++

Published August 25th, 2010 Under Software Testing, Unit Testing | Comments Off

Kevlin Henney explores the typical styles used for C++ unit-testing frameworks before going on to look at other possibilities that are more likely to encourage programmer testing and higher quality unit tests. From the raw use of the assert macro, to xUnit-style frameworks, to more natively C++-style frameworks and then onto a specification-centric approach that abandons functions as the basic unit of test case decomposition. The technical and practitioner pros and cons of each approach are examined.

Watch this video on

C++ Mocks Made Easy – An Introduction to gMock

Published March 25th, 2009 Under Uncategorized | Comments Off

Mock objects make unit testing easier and more effective. They cut code dependencies, make the tests fast and robust, make the test intent clear, and enable developers to easily test the interaction between components. While an invaluable technique, mocks haven’t caught on in the C++ land due to limitation of the language and lack of good tools. gMock is a library that makes C++ mocks easy and practical. A user would describe the interface he wants to mock and gMock will automatically generate the implementation. Then the user can control the generated mock using an intuitive Domain-Specific Language (embedded in C++) that resembles English. Announced in Q4 2007, gMock has been used in over 100 projects at Google.

Google C++ Mocking Framework Home Page

The Value of Small Tests

Published January 7th, 2009 Under Software Testing, Unit Testing | Comments Off

Whenever unit-tests are written, chances are good that the code is not isolated. Many tests run against a given class/interface/function. The design didn’t consider isolating the dependencies of this function, which makes tests slower, larger, less focused, and likely depending on external dependencies (e.g. database access) which decreases the reliability. In addition, it disables much of the interaction-based testing or verification of behavior at error conditions. In this session I will demonstrate the value of small, isolated tests and explain good engineering practices for how to structure them. I will review examples in several programming languages and domains including C++ and Java, but also on web applications, UMTS Protocol Design and Testing (Device Testing), and other platforms.  Talk give at the Third Annual Google Test Automation Conference (GTAC), Seattle, WA, Oct. 23rd and 24th. Speaker: Christopher Semturs.

Integrated Debugger for Java*/JNI Environments

Published December 11th, 2008 Under Software Testing | Comments Off

In this video we will get you familiar with the approach to debugging JNI code based on a new debug interface implemented on top of Apache Harmony JVM. This approach provides support for seamless debugging native methods in Java applications and access to native data. The user interface is plugged into Eclipse IDE and based on the JDT and CDT debug interfaces. We will demonstrate the new approach on basic debug scenarios.