Skip to content

TarsCloud/Tars-Unittest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

点我查看中文版

Description of Tars-Test

The development of Tars-Test(unit testcase of Tarscpp) is mainly based on the GoogleTest test framework. For details on GoogleTest, please see [Official Documentation] (https://github.com/abseil/googletest/blob/master/googletest/docs/primer.md) .
The current testcases have covered the basic scenario of the RPC service.

Dependent environment

Since Tars-Test is based on GoogleTest, you need to install GoogleTest and generate related files for coverage, as follows:

[sudo] yum install gtest-devel lcov

instructions for use

在tarscpp/build下编译:

cmake .. -DONLY_LIB=OFF
make -j8
make run-unittest

How to add one testcase

The test case code in the current project is mainly in the testcode folder, and subsequent files and test cases can be added as needed. New test cases can reuse existing OBJs, services, and applications. If you need to deploy new services or OBJs, you can add services to the protocol folder. Related code, the new server configuration file can be added to the conf folder.

Releases

No releases published

Packages

No packages published

Languages