Unit Tests - Studio3T/robomongo GitHub Wiki

How to run unit tests

To run the unit tests, go to bin directory. And execute one of the following scripts:
(Runs in release mode by default, add debug if needed)

|-- Run Unit Tests:
|
|     $ bin/build-and-run-tests
|     $ bin/run-tests
|

E.g.:

\robo\bin>run-tests

*******************  Running unit tests *******************
Mode: Release
Run : E:\robo\bin\..\\build\Release\src\robomongo-unit-tests\Release\robo_unit_tests.exe

[==========] Running 3 tests from 3 test cases.
[----------] Global test environment set-up.
[----------] 1 test from RoboCrypt_CoreTests
[ RUN      ] RoboCrypt_CoreTests.encrypt_decrypt
[       OK ] RoboCrypt_CoreTests.encrypt_decrypt (12 ms)
[----------] 1 test from RoboCrypt_CoreTests (13 ms total)

[----------] 1 test from StringOperationsTests
[ RUN      ] StringOperationsTests.captilizeFirstChar
[       OK ] StringOperationsTests.captilizeFirstChar (0 ms)
[----------] 1 test from StringOperationsTests (1 ms total)

[----------] 1 test from hex_utils_tests
[ RUN      ] hex_utils_tests.test_1
[       OK ] hex_utils_tests.test_1 (0 ms)
[----------] 1 test from hex_utils_tests (0 ms total)

[----------] Global test environment tear-down
[==========] 3 tests from 3 test cases ran. (18 ms total)
[  PASSED  ] 3 tests.