Menu

Tests

Karl  Jones Bud Davis
Attachments
2016-01-21.png (59228 bytes)

KDIS 2-9-0 now features Unit tests using the googletest framework.

The Unit tests are primarily for KDIS development in order to detect regressions and verify features still work and so is disabled by default. If you wish to enable it the cmake option BUILDTESTS will download googletest locally and set up an additional project called KDIS_tests.
This is a console application that can run the tests. See the googletest docs for further infomation.

Example Test Run

Example

Custom Tests

It is very simple to add your own tests. Create a new C++ file in the directory Tests\UnitTests, run cmake and the file will be added to the project. See the googletest docs for further information on writing tests as well as looking at the existing tests for a guide.

If you find any bugs in KDIS submitting them to me as a test would be very much appreciated!

Linux Users

% mkdir build
% cd build
% cmake -DBUILD_TESTS=ON ../KDIS
% make
%./Tests/KDIS_tests


Related

Wiki: Main_Page

MongoDB Logo MongoDB