All Projects → sinojelly → mockcpp

sinojelly / mockcpp

Licence: Apache-2.0 license
Two C/C++ testing tools, mockcpp and testngpp.

Programming Languages

C++
36643 projects - #6 most used programming language
c
50402 projects - #5 most used programming language
CMake
9771 projects
python
139335 projects - #7 most used programming language
powershell
5483 projects
Makefile
30231 projects

Projects that are alternatives of or similar to mockcpp

Mockito
Most popular Mocking framework for unit tests written in Java
Stars: ✭ 12,453 (+31032.5%)
Mutual labels:  mockito, testing-tools, test-driven-development
Mockito Scala
Mockito for Scala language
Stars: ✭ 231 (+477.5%)
Mutual labels:  mockito, testing-tools, test-driven-development
Awesome Unit Testing Swift
A curated collection of awesome blog articles, books, talks, podcasts, tools/frameworks and examples.
Stars: ✭ 272 (+580%)
Mutual labels:  testing-tools, test-driven-development
Gotests
Automatically generate Go test boilerplate from your source code.
Stars: ✭ 3,597 (+8892.5%)
Mutual labels:  testing-tools, test-driven-development
Beanmother
A library for setting up Java objects as test data.
Stars: ✭ 102 (+155%)
Mutual labels:  testing-tools, test-driven-development
StrangerData
👽 A .NET database populator for testing purposes
Stars: ✭ 22 (-45%)
Mutual labels:  testing-tools, test-driven-development
Avoriaz
🔬 a Vue.js testing utility library
Stars: ✭ 771 (+1827.5%)
Mutual labels:  testing-tools, test-driven-development
Testcl
when you don't have the balls to test your F5 BIG-IP iRules directly in production
Stars: ✭ 79 (+97.5%)
Mutual labels:  testing-tools, test-driven-development
Junit Dataprovider
A TestNG like dataprovider runner for JUnit with many additional features
Stars: ✭ 226 (+465%)
Mutual labels:  testing-tools, test-driven-development
Refactoring Android App Series Overview
Overview of wonderful series started by Oday and Rakesh for refactoring android application under youtube channel Dry Code.
Stars: ✭ 101 (+152.5%)
Mutual labels:  mockito, test-driven-development
react-native-unit-tests
Example how to test React Native components
Stars: ✭ 79 (+97.5%)
Mutual labels:  testing-tools, test-driven-development
eat
Json based scenario testing tool(which can have test for functional and non-functional)
Stars: ✭ 41 (+2.5%)
Mutual labels:  testing-tools, test-driven-development
PixelTest
Fast, modern, simple iOS snapshot testing written purely in Swift.
Stars: ✭ 56 (+40%)
Mutual labels:  testing-tools, test-driven-development
fast-test
fast-test是基于Java的自动化测试工具集合,包含自动测试平台(后端Vue),自动测试框架,可以帮助测试人员快速构建各类测试工具和自动化测试框架。请点星支持!
Stars: ✭ 112 (+180%)
Mutual labels:  testing-tools
scalatest-junit-runner
JUnit 5 runner for Scalatest
Stars: ✭ 30 (-25%)
Mutual labels:  testing-tools
mlconjug3
A Python library to conjugate verbs in French, English, Spanish, Italian, Portuguese and Romanian (more soon) using Machine Learning techniques.
Stars: ✭ 47 (+17.5%)
Mutual labels:  test-driven-development
threat9-test-bed
No description or website provided.
Stars: ✭ 26 (-35%)
Mutual labels:  testing-tools
jest-gql
✅🚀GraphQL based tests for Jest and Apollo
Stars: ✭ 33 (-17.5%)
Mutual labels:  testing-tools
main
Mocks Server monorepo
Stars: ✭ 109 (+172.5%)
Mutual labels:  testing-tools
TeamCityApp
TeamCity in your pocket (Android application)
Stars: ✭ 48 (+20%)
Mutual labels:  mockito
	mockcpp --- A C/C++ Mock Framework
	-------------------------------------
	https://github.com/sinojelly/mockcpp
	https://gitee.com/sinojelly/mockcpp

mockcpp is a jmock-like generic C/C++ Mock Framework, which doesn't use complex template technique which will result in very heavy compiling overhead.

C/C++ test framework

This project provided two tools for C/C++ testing.

Name Description Path
mockcpp C/C++ mock framework mockcpp
testngpp C/C++ test framework mockcpp/tests/3rdparty/testngpp

The sample project to use these tools is at :
https://gitee.com/sinojelly/testngpp-mockcpp-sample

You can use mockcpp with other C/C++ test framework, such as gtest, Catch2, CppUTest etc. The sample projects are at:
https://gitee.com/sinojelly/gtest-with-mockcpp
https://gitee.com/sinojelly/catch2-with-mockcpp

You can use mockcpp testngpp prebuilt libraries and header files, or use their source code.

If you use the prebuilt libraries, be sure they are built on the same os and compiler as the project that is being tested.

mockcpp features

OS Compiler Virtual method mock Global function mock Overloaded function mock
Linux GCC Yes Yes Yes
Win10 MinGW Yes Yes Yes
Win10 VS2019 Yes No Yes

testngpp features

OS Compiler Base function Memory leak check Run in Sandbox Parameterized test
Linux GCC Yes Yes Yes Yes
Win10 MinGW Yes No No Yes
Win10 VS2019 Yes Yes Yes Yes

Sample code

Testngpp parameterized test sample

FIXTURE(DataDrivenTest)
{
	DATA_PROVIDER( mydata, 3
		, DATA_GROUP(1, 2, 3) 
		, DATA_GROUP(77, 20, 97) 
		, DATA_GROUP(101, 503, 604));

	// @test(data="mydata")
	PTEST( (int a, int b, int c), this is a parameterized test)
	{
		ASSERT_EQ(c, add(a, b));
	}
};

Documents for user

New Build System Description(recommended for user and developers)
Mockcpp manual english
Mockcpp manual chinese
Mockcpp simple instruction (Chinese, recommended)
Testngpp simple instruction (Chinese, recommended)
Testngpp user manual (Chinese)

Documents for developer

Advanced Guide of Mockcpp
Mockcpp version history
Software Architecture (Chinese)
Mockcpp configure parameter
Mockcpp Build Guide (a bit old)
Mockcpp Install Guide (old)

Other documents for reference

Testngpp MSVC Installation (old)
Testngpp Introduction

Email to the current maintainers may be sent to [email protected], [email protected].

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].