2018-04-12 17:56:08 +02:00
2018-04-12 17:56:08 +02:00
2018-04-12 17:55:48 +02:00
2009-05-12 16:41:02 +00:00
2018-04-12 17:09:44 +02:00
2016-01-05 19:10:02 +01:00
2010-10-10 23:32:04 +02:00
2016-11-29 21:59:16 +01:00
2017-06-28 17:53:19 +02:00
2009-03-24 08:17:50 +00:00
2017-09-03 17:21:41 +02:00
2017-09-03 17:31:25 +02:00
2016-10-08 21:04:30 +02:00
2009-03-27 07:29:54 +00:00

Cmdtest - a program for testing executable programs
===================================================

Cmdtest_ is a program to test executable programs. Tests are written in
an "xunit style", using assertions about created files, content of
standard output, exit code, etc. Cmdtest_ is written in Ruby.
It consists of a main program and a number of library files.

Documentation
-------------

A `Cmdtest User Guide`_ is available.
It is generated from the file ``cmdtest.txt`` which is written in
reStructuredText_ format. There is also an ``examples`` directory with
some real-world examples of using Cmdtest_.

Testing cmdtest
---------------

Cmdtest_ is tested with itself, like this::

  rake test

This tests ``bin/cmdtest.rb`` using the ``cmdtest`` found in the PATH.
It runs a number of tests in the directory ``t``.
The ``cmdtest`` used to test should normally be a stable version
different from the one tested.

Installation
------------

No installation is needed to use Cmdtest_. The file ``cmdtest.rb`` can
be executed directly from where it is checked out or unpacked. But the
program can also be installed. Use the following command::

  git clone https://bitbucket.org/holmberg556/cmdtest.git
  cd cmdtest
  ruby setup.rb            # sudo may be needed

For details about options to ``setup.rb`` use ``ruby setup.rb --help``
or see <http://i.loveruby.net/en/projects/setup/doc/usage.html>.

License
-------

Cmdtest_ is released under the GNU General Public License version 3.
For details see the file ``COPYING.txt`` in the same directory as this file.

History
-------

I got the idea to create Cmdtest_ when I was using and making changes to Cons_,
the make-replacement written in Perl. The program had tests written
using the Perl module Test::Cmd. Later I developed other
programs that also needed some kind of "unit tests" for the executables.
I looked for existing tools but could not find anything that I was completely
comfortable with. So I started to develop my own tool, and the result was
Cmdtest_.

Author
------

Cmdtest_ was created by Johan Holmberg <holmberg556 at gmail dot com>.


.. _reStructuredText: http://docutils.sourceforge.net/rst.html
.. _Cmdtest:          https://bitbucket.org/holmberg556/cmdtest
.. _Cons:             http://www.dsmit.com/cons/

.. _`Cmdtest User Guide`:     http://holmberg556.bitbucket.io/cmdtest/doc/cmdtest.html
Description
No description provided
Readme 667 KiB
Languages
Ruby 88%
Python 10.8%
CMake 0.9%
Perl 0.3%