Test suite

The Dragonfly library contains tests to verify its functioning and assure its quality. These tests come in two distinct types:

  • Tests based on unittest.
  • Tests based on doctest; these also serve as documentation by providing usage examples.

See the links below for tests of both types.

Tests in doctests format:

Tests based on the unittest framework reside in the dragonfly.test package.

Running the test suite

Using DNS

Follow the following steps to run the test suite for the DNS backend Aland

  1. Start DNS. (And ensure that NatLink is also automatically started.)
  2. Extract the Dragonfly source code in a directory <dir>.
  3. Run the tests with the following commands:
    • cd <dir>
    • C:\Python26\python.exe <dir>\setup.py test

Using WSR

Follow the following steps to run the test suite for the DNS backend Aland

  1. Start WSR.
  2. Wake WSR up, so that it is not in sleeping state, and then turn the microphone off. (It is important to wake the microphone up first, because otherwise it’ll be off and sleeping at the same time. This causes all recognitions to fail. Weird, huh?)
  3. Extract the Dragonfly source code in a directory <dir>.
  4. Run the tests with the following commands:
    • cd <dir>
    • C:\Python26\python.exe <dir>\setup.py test --test-suite=dragonfly.test.suites.sapi5_suite