martinmoene / lest

A modern, C++11-native, single-file header-only, tiny framework for unit-tests, TDD and BDD (includes C++98 variant)
Boost Software License 1.0
390 stars 45 forks source link

Tests are failing after importing the project trouygh CMake #56

Closed jgaa closed 6 years ago

jgaa commented 6 years ago

I imported lest in a simple CMake library project in kdevelop under Debian.

In the Unit Tests pane, I see my test, and also tests from lest (which is good). However, when I run the tests, most of them fails.

My tests pass, and the library seems to work.

Below is a screen-shot of the unit tests pane in kdevelop, after running all the tests,

lest

My project is here: warlib

martinmoene commented 6 years ago

The numbered 'tests' are actually examples of which several fail for educational reasons.

CMake variable LEST_BUILD_EXAMPLE lets you control inclusion of the examples in the build process; by default it's on.

jgaa commented 6 years ago

That fixed it. Thank you.