You can find this example at examples/calculator_spec.py, alongside a few
others.

After installing Ivoire, running the example above with
ivoire examples/calculator_spec.py should produce:

If you’d like a more verbose output, try passing the -v command line flag.

At some point in the (hopefully very near) future, when I’ve sorted out an
import hook, Ivoire will also be able to be run as
ivoire transform `which nosetests` --testmatch='(?:^|[\b_\./-])[Ss]pec',
which will transform specs automatically into normal unittest.TestCases.
Work on this is in progress.

Running the Test Suite

Ivoire’s test suite is currently written mostly in itself, but it still has a
small section that is written using the standard unittest test cases.

You can run Ivoire’s test suite by running tox in the root of the
repository checkout after installing tox via your package manager or with
pip install tox. This will run both parts of the suite.

Contributing

I’m Julian Berman.

You can find me on Freenode in #python-testing and various other channels
(nick: tos9) if you’d like to chat, or if there’s enough interest in such a
thing, in ##ivoire.