Chapter 18. Testing and Continuous Integration

Nowadays, automated testing is a fundamental activity in software development. In this chapter, you will see a survey of the tools available for Jython in this field. These tools range from common tools used in the Python world to aid with unit testing, to more complex tools available in the Java world that can be extended or driven using Jython.

Python Testing Tools

Let's start the chapter with a discussion of the most common Python testing tools. We will start with UnitTest to get a feel for the process.

UnitTest

First we will take a look at the most classic test tool available in Python: UnitTest. It follows the conventions of most "xUnit" incarnations (such as JUnit); you subclass from TestCase class, ...

Get The Definitive Guide to Jython: Python for the Java™ Platform now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.