<feed xmlns='http://www.w3.org/2005/Atom'>
<title>catch3/contrib, branch v2.13.8</title>
<subtitle>Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.</subtitle>
<link rel='alternate' type='text/html' href='https://git.progmasoft.com/catch3/'/>
<entry>
<title>fixed inconsistent semicolon expansion in catch_discover_tests (Bug #2214)</title>
<updated>2021-04-16T15:26:08+00:00</updated>
<author>
<name>Georg Schwab</name>
</author>
<published>2021-04-14T06:35:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.progmasoft.com/catch3/commit/?id=86a4d704bcf1003f1726957c22f9eb9905f021aa'/>
<id>86a4d704bcf1003f1726957c22f9eb9905f021aa</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix typos in the code base</title>
<updated>2021-04-08T16:06:36+00:00</updated>
<author>
<name>Julien Brianceau</name>
</author>
<published>2021-04-07T21:02:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.progmasoft.com/catch3/commit/?id=269f96e2bc0fca840846fd3dc199c0540558e345'/>
<id>269f96e2bc0fca840846fd3dc199c0540558e345</id>
<content type='text'>
Note that only documentation and comments are impacted by this change.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Note that only documentation and comments are impacted by this change.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add deprecation warning in ParseAndCatchTests</title>
<updated>2020-12-21T12:15:36+00:00</updated>
<author>
<name>Reinhold Gschweicher</name>
</author>
<published>2020-12-17T13:02:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.progmasoft.com/catch3/commit/?id=18ab353e5580d5d2558bacab5a68d7f6f40c8a79'/>
<id>18ab353e5580d5d2558bacab5a68d7f6f40c8a79</id>
<content type='text'>
Parsing C++ with regex in CMake is error prone and regularly leads to silently
dropped (not run) test cases.

Going forward the function `catch_discover_tests` from `contrib/CMake.cmake`
should be used.

For more information see https://github.com/catchorg/Catch2/issues/2092#issuecomment-747342765
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Parsing C++ with regex in CMake is error prone and regularly leads to silently
dropped (not run) test cases.

Going forward the function `catch_discover_tests` from `contrib/CMake.cmake`
should be used.

For more information see https://github.com/catchorg/Catch2/issues/2092#issuecomment-747342765
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix Catch.cmake helper by setting variable globally</title>
<updated>2020-12-17T17:50:04+00:00</updated>
<author>
<name>Reinhold Gschweicher</name>
</author>
<published>2020-12-17T09:28:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.progmasoft.com/catch3/commit/?id=2375a7f5b7a05d44dad4c339d2ec0a01bd51b835'/>
<id>2375a7f5b7a05d44dad4c339d2ec0a01bd51b835</id>
<content type='text'>
Set `_CATCH_DISCOVER_TESTS_SCRIPT` helper variable globally. Otherwise in a
scoped call (like `add_subdirectory()`) the variable gets lost. This lost
variable results in a post build error with not much information to lead to the
root of the problem.

This enables the usage of the helper script with the following example structure

- CMakeLists.txt (project root with `add_subdirectory(external/catch2)`
- external/catch2
  - CMakeLists.txt (contents listed below)
  - contrib/Catch.cmake
  - contrib/CatchAddTests.cmake
  - catch2/catch.hpp
- tests
  - CMakeLists.txt (add tests with `catch_discover_tests(${PROJECT_NAME})`)

contents of project specific helper `external/catch2/CMakeLists.txt`
```cmake
cmake_minimum_required (VERSION 3.1...${CMAKE_VERSION})
project(Catch2 LANGUAGES CXX VERSION 2.13.3)
add_library(Catch2 INTERFACE)
target_include_directories(Catch2
  INTERFACE
    $&lt;BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}&gt;
)
 # provide a namespaced alias for clients to 'link' against if catch is included as a sub-project
add_library(Catch2::Catch2 ALIAS Catch2)
include(contrib/Catch.cmake)
```
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Set `_CATCH_DISCOVER_TESTS_SCRIPT` helper variable globally. Otherwise in a
scoped call (like `add_subdirectory()`) the variable gets lost. This lost
variable results in a post build error with not much information to lead to the
root of the problem.

This enables the usage of the helper script with the following example structure

- CMakeLists.txt (project root with `add_subdirectory(external/catch2)`
- external/catch2
  - CMakeLists.txt (contents listed below)
  - contrib/Catch.cmake
  - contrib/CatchAddTests.cmake
  - catch2/catch.hpp
- tests
  - CMakeLists.txt (add tests with `catch_discover_tests(${PROJECT_NAME})`)

contents of project specific helper `external/catch2/CMakeLists.txt`
```cmake
cmake_minimum_required (VERSION 3.1...${CMAKE_VERSION})
project(Catch2 LANGUAGES CXX VERSION 2.13.3)
add_library(Catch2 INTERFACE)
target_include_directories(Catch2
  INTERFACE
    $&lt;BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}&gt;
)
 # provide a namespaced alias for clients to 'link' against if catch is included as a sub-project
add_library(Catch2::Catch2 ALIAS Catch2)
include(contrib/Catch.cmake)
```
</pre>
</div>
</content>
</entry>
<entry>
<title>Consider CMP0110 add_test() policy</title>
<updated>2020-10-20T21:25:45+00:00</updated>
<author>
<name>Reinhold Gschweicher</name>
</author>
<published>2020-10-20T07:11:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.progmasoft.com/catch3/commit/?id=69297ceeb600897ba3c17c3c5d57c5605aa8abe2'/>
<id>69297ceeb600897ba3c17c3c5d57c5605aa8abe2</id>
<content type='text'>
CMake 3.19 introduces new add_test() behavior guarded with the policy
CMP0110.

See: https://cmake.org/cmake/help/latest/policy/CMP0110.html

Update the helper script ParseAndAddCatchTests to consider the policy and
handle the test case name accordingly.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
CMake 3.19 introduces new add_test() behavior guarded with the policy
CMP0110.

See: https://cmake.org/cmake/help/latest/policy/CMP0110.html

Update the helper script ParseAndAddCatchTests to consider the policy and
handle the test case name accordingly.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix indentation in ParseAndAddCatchTests</title>
<updated>2020-10-20T11:48:46+00:00</updated>
<author>
<name>Reinhold Gschweicher</name>
</author>
<published>2020-10-20T09:24:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.progmasoft.com/catch3/commit/?id=2d30df3500b917c2d662a6561948a8dba20a4c8b'/>
<id>2d30df3500b917c2d662a6561948a8dba20a4c8b</id>
<content type='text'>
Consistently use 4 spaces instead of tabs
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Consistently use 4 spaces instead of tabs
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix CMake regex to add tests</title>
<updated>2020-10-20T11:48:14+00:00</updated>
<author>
<name>Reinhold Gschweicher</name>
</author>
<published>2020-10-19T15:57:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.progmasoft.com/catch3/commit/?id=77b2a7daead5d6b08b564cb50d60d035f06e781a'/>
<id>77b2a7daead5d6b08b564cb50d60d035f06e781a</id>
<content type='text'>
Fix regex that requires two string arguments in the form of
TEST_CASE("a", "b") resulting in not finding TEST_CASE("a") entries.

See https://regex101.com/r/JygOND/1

Fixes: https://github.com/catchorg/Catch2/issues/2055
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix regex that requires two string arguments in the form of
TEST_CASE("a", "b") resulting in not finding TEST_CASE("a") entries.

See https://regex101.com/r/JygOND/1

Fixes: https://github.com/catchorg/Catch2/issues/2055
</pre>
</div>
</content>
</entry>
<entry>
<title>Add WORKING_DIRECTORY to CatchAddTests.cmake commands</title>
<updated>2020-10-02T21:29:40+00:00</updated>
<author>
<name>Rémy Salim</name>
</author>
<published>2020-10-01T09:23:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.progmasoft.com/catch3/commit/?id=44900d5371a7595cc43316725f00f7ff41bfc1b7'/>
<id>44900d5371a7595cc43316725f00f7ff41bfc1b7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Support template test cases in ParseAndAddCatchTests</title>
<updated>2020-09-24T20:42:32+00:00</updated>
<author>
<name>Ansel Sermersheim</name>
</author>
<published>2020-09-23T16:13:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.progmasoft.com/catch3/commit/?id=3e8800beb16aa5959569a20e80180686228e124c'/>
<id>3e8800beb16aa5959569a20e80180686228e124c</id>
<content type='text'>
* Change regex to allow parentheses inside the test macro for a type list
* Append a wildcard to the CTestName if the test case is a template
* Also change the regular expression so parentheses are allowed in names
  (fixes #1848)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Change regex to allow parentheses inside the test macro for a type list
* Append a wildcard to the CTestName if the test case is a template
* Also change the regular expression so parentheses are allowed in names
  (fixes #1848)
</pre>
</div>
</content>
</entry>
<entry>
<title>Add REPORTER and OUTPUT_* args</title>
<updated>2020-09-23T17:12:06+00:00</updated>
<author>
<name>Martin Stump</name>
</author>
<published>2020-09-12T09:12:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.progmasoft.com/catch3/commit/?id=eadf4e32b653bc59aa10f9f521f318a7de1d73ba'/>
<id>eadf4e32b653bc59aa10f9f521f318a7de1d73ba</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
