SCons tool for building and running unit tests based on CxxTest framework
Project description
SCons tool to compile and run unit tests based on CxxTest framework. This tool is extracted from sources found at CxxTest Repository.
Installation
First, install CxxTest framework, for example (Debian):
sudo apt-get install cxxtest
Installing with pipenv
You should use this in projects using pipenv
pipenv install --dev scons-tool-cxxtest
Alternativelly, you may add the following snippet to your Pipfile
[dev-packages]
scons-tool-cxxtest = "*"
Installing as a git submodule
Create new git repository:
mkdir /tmp/prj && cd /tmp/prj touch README.rst git init
Add the scons-tool-cxxtest as a submodule:
git submodule add git://github.com/ptomulik/scons-tool-cxxtest.git site_scons/site_tools/cxxtest
Usage example
Create simple test file
// MyTestSuite1.t.h #include <cxxtest/TestSuite.h> class MyTestSuite1 : public CxxTest::TestSuite { public: void testAddition(void) { TS_ASSERT(1 + 1 > 1); TS_ASSERT_EQUALS(1 + 1, 2); } };
Create simple SConstruct file
# SConstruct env = Environment(tools = ['default', 'cxxtest']) env.CxxTest('MyTestSuite1')
Try it out:
scons check
LICENSE
See license text in __init__.py.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for scons_tool_cxxtest-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a19cfd0ac694614ae179265e79596907647fad8f701d93fa42a927e71a24cb9 |
|
MD5 | e86a638287df7cf4975e09c9c4bde3a4 |
|
BLAKE2b-256 | 54c7b0d280b42cdae09744bfe93afeb7e81d0587fe0da6af3074b0a9d0820a64 |