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
File details
Details for the file scons-tool-cxxtest-0.1.2.tar.gz
.
File metadata
- Download URL: scons-tool-cxxtest-0.1.2.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c0ca9d9523b5a4e859664a359520560ea4958cf441179029f0d162de1e25838 |
|
MD5 | 3242a08211a5eb8623ce8b91994c7e79 |
|
BLAKE2b-256 | a6b93531cf1d469fa1c941caac7255f00eaad3bed52a39317bcb8b2b4d638c72 |
File details
Details for the file scons_tool_cxxtest-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: scons_tool_cxxtest-0.1.2-py3-none-any.whl
- Upload date:
- Size: 18.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a19cfd0ac694614ae179265e79596907647fad8f701d93fa42a927e71a24cb9 |
|
MD5 | e86a638287df7cf4975e09c9c4bde3a4 |
|
BLAKE2b-256 | 54c7b0d280b42cdae09744bfe93afeb7e81d0587fe0da6af3074b0a9d0820a64 |