Tests¶
The SDF library sadly is not fully covered by tests, but there are some tests available.
Run all Tests¶
The Makefile
in the top-level test
directory is intended to run all implemented tests. There should be a target
for each type of implemented test.
Unittest¶
The test/unit-test
directory contains test cases written for the unittest
module, which is part of
the Python standard library. To execute all tests in this directory, run python -m unittest
in the test
directory, or use the unittest
target.
Note
The directory cannot be named unittest
, because then python -m unittest
would try to execute that directory
instead of the unittest
module.
Testing sdf-convert
¶
The target sdf-convert
tests the CLI conversion tool.