This is an old revision of the document!


Writing tests

(Caution: this tutorial is currently under construction. Please come back tomorrow to see the complete version.)

Description: In this tutorial you will learn how to write unit (and not only) tests for your CRAM functions and features.

Previous Tutorial: Implementing failure handling for the TurtleSim

lisp-unit

blabla

Writing our own test for the beginner tutorial code

We are going to write some tests for the functions we wrote in the previous tutorials.

Let's create a new test asdf system

Now let us load the test package and switch into its namespace:

TUT> (ros-load:load-system "cram_my_beginner_tutorial" :cram-my-beginner-tutorial-tests)
TUT> (in-package :tut-test)

Let's see how to implement this.

(define-test ...