bandit/cci.20210618

Human-friendly unit testing for C++11
Recipe info
2023-08-10

Available packages
Header Only

Install
Add the following line to your conanfile.txt:
[requires]
bandit/cci.20210618

Using bandit

Note

If you are new with Conan, we recommend to read the section how to consume packages.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
bandit/cci.20210618
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout


class ExampleRecipe(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeDeps", "CMakeToolchain"

    def requirements(self):
        self.requires("bandit/cci.20210618")

    def layout(self):
        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing

Useful information to take into account to consume this library:


These are the main declared targets:

  • CMake package name(s): bandit
  • CMake target name(s): bandit::bandit
  • pkg-config file name(s): bandit.pc

A simple use case using the CMake file name and the global target:

# ...
find_package(bandit REQUIRED)
# ...
target_link_libraries(YOUR_TARGET bandit::bandit)

These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the bandit homepage listed above:

#include "bandit/adapters.h"
#include "bandit/adapters/interface.h"
#include "bandit/adapters/snowhouse.h"
#include "bandit/assertion_exception.h"
#include "bandit/bandit.h"
#include "bandit/colorizers.h"
#include "bandit/colorizers/backend.h"
#include "bandit/colorizers/dark.h"
#include "bandit/colorizers/interface.h"
#include "bandit/colorizers/light.h"
#include "bandit/colorizers/off.h"
#include "bandit/context.h"
#include "bandit/controller.h"
#include "bandit/external/optionparser.h"
#include "bandit/failure_formatters.h"
#include "bandit/failure_formatters/generic.h"
#include "bandit/failure_formatters/interface.h"
#include "bandit/failure_formatters/posix.h"
#include "bandit/failure_formatters/qt_creator.h"
#include "bandit/failure_formatters/visual_studio.h"
#include "bandit/grammar.h"
#include "bandit/options.h"
#include "bandit/registration/registrar.h"
#include "bandit/registration/spec_registry.h"
#include "bandit/reporters.h"
#include "bandit/reporters/colored_base.h"
#include "bandit/reporters/crash.h"
#include "bandit/reporters/dots.h"
#include "bandit/reporters/info.h"
#include "bandit/reporters/interface.h"
#include "bandit/reporters/progress_base.h"
#include "bandit/reporters/singleline.h"
#include "bandit/reporters/spec.h"
#include "bandit/reporters/summary.h"
#include "bandit/reporters/xunit.h"
#include "bandit/run_policies.h"
#include "bandit/run_policies/always.h"
#include "bandit/run_policies/bandit.h"
#include "bandit/run_policies/filter_chain.h"
#include "bandit/run_policies/interface.h"
#include "bandit/run_policies/never.h"
#include "bandit/runner.h"
#include "bandit/test_run_error.h"
#include "bandit/version.h"