Skip to main content

SCons tool for building and running unit tests based on CxxTest framework

Project description

Travis CI build status

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

  1. Create new git repository:

    mkdir /tmp/prj && cd /tmp/prj
    touch README.rst
    git init
  2. 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

  1. 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);
      }
    };
  2. Create simple SConstruct file

    # SConstruct
    env = Environment(tools = ['default', 'cxxtest'])
    env.CxxTest('MyTestSuite1')
  3. 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

scons-tool-cxxtest-0.1.2.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

scons_tool_cxxtest-0.1.2-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

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

Hashes for scons-tool-cxxtest-0.1.2.tar.gz
Algorithm Hash digest
SHA256 1c0ca9d9523b5a4e859664a359520560ea4958cf441179029f0d162de1e25838
MD5 3242a08211a5eb8623ce8b91994c7e79
BLAKE2b-256 a6b93531cf1d469fa1c941caac7255f00eaad3bed52a39317bcb8b2b4d638c72

See more details on using hashes here.

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

Hashes for scons_tool_cxxtest-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8a19cfd0ac694614ae179265e79596907647fad8f701d93fa42a927e71a24cb9
MD5 e86a638287df7cf4975e09c9c4bde3a4
BLAKE2b-256 54c7b0d280b42cdae09744bfe93afeb7e81d0587fe0da6af3074b0a9d0820a64

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page