mirror of
https://github.com/Studio3T/robomongo.git
synced 2025-12-04 16:25:19 -05:00
Page:
Unit Tests
Pages
Build Robomongo (0.8.x 0.9.0 RC9)
Feature Spec
Home
How Welcome Tab works
How to export to CSV
How to use SSH port forwarding with Robo 3T
New Release Check List
Notes: Upgrade to MongoDB 4.0
Package Robomongo
Qt Build System
Restore connection strings from versions below 0.9.0 RC2
Robo 3T Schematics: Build, Class and UI Diagrams
Robomongo Code Quality
Robomongo Code Review
Robomongo Coding Style
Robomongo Config File Guide
Robomongo Config File
Robomongo Cplusplus 11, 14 Transition Guide
Robomongo ECMAScript 2015 (aka ES6) Support
Static Code Analysis
Tests
Translator's guide
Unit Tests
Upgrade Guide From MongoDB 3.2 to 3.4 and 3.4 to 4.0
Upgrade Guide to MongoDB 4.2 from 4.0
macOS Upgrade Guide
No results
11
Unit Tests
Gökhan Şimşek edited this page 2020-12-21 14:33:45 +03:00
Table of Contents
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.