banditcpp / bandit

Human-friendly unit testing for C++11
https://banditcpp.github.io/bandit/
Other
259 stars 37 forks source link

Conan package #161

Closed sbeyer closed 1 year ago

sbeyer commented 4 years ago

There should be a Conan package of bandit. This is very easy to produce.

However, to do it right, we will make available Conan packages for Snowhouse and Bandit along with the Bandit 3.0 release.

MartinDelille commented 3 years ago

I'll be happy to help since I started using conan for some of my dependencies.

Here is an example of an header only library recipe: https://github.com/conan-io/conan-center-index/blob/master/recipes/rapidjson/all/conanfile.py

sbeyer commented 3 years ago

Thank you very much! I have not yet come around to use Conan.

MartinDelille commented 3 years ago

I created a first package for snowhouse: https://github.com/conan-io/conan-center-index/pull/6763

I tried creating one for bandit I have an issue because when using the last release or the last commit I have the following error:

In file included from /Users/martin/dev/conan/cci/recipes/bandit/all/test_package/test_package.cpp:1:
/Users/martin/.conan/data/bandit/2.0.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/bandit/bandit.h:23:10: fatal error:
      'bandit/assertion_frameworks/snowhouse/snowhouse/snowhouse.h' file not found
#include <bandit/assertion_frameworks/snowhouse/snowhouse/snowhouse.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
MartinDelille commented 2 years ago

I patched the file so I have a local package working that I submitted to conan-center-index: https://github.com/conan-io/conan-center-index/pull/12816

MartinDelille commented 1 year ago

Bandit is now part of the conan center index: https://github.com/conan-io/conan-center-index/pull/12816

sbeyer commented 1 year ago

Thank you for your work and your endless patience! I hope you will be maintaining the conan package in case of future updates of bandit.