Bump Catch 1 to Catch v3.0.0-preview4 (#2105)

* Bump Catch2 to latest v3.0.0-preview4

Bump Catch2 to latest 2.x: 2.13.8

Rename submodule Catch to Catch2

Add catch2 to ctest

Fix missing ";" in catch tests

Use ctest for catch2: run once with little output, then 2nd time with verbose output for failed tests

Run through CatchTestRunner: TEMP: PICK A STYLE

Update Catch to v3.0.0-preview4

Try to migrate to catch2 v3

Ok it builds and runs, but I'm missing tests

Get all files that have inline tests, now I get same behavior as with catch1

Put back app sources

* Remove the link to coolprop lib since I am now using APP_SOURCES instead of just the specific files with tests
This commit is contained in:
Julien Marrec
2022-04-01 00:47:00 +02:00
committed by GitHub
parent 05c8cf503b
commit c1ed08617e
30 changed files with 82 additions and 60 deletions

View File

@@ -1064,7 +1064,7 @@ CoolPropDbl AbstractState::calc_second_partial_deriv(parameters Of1, parameters
#ifdef ENABLE_CATCH
#include "catch.hpp"
#include <catch2/catch_all.hpp>
TEST_CASE("Check AbstractState", "[AbstractState]") {
SECTION("bad backend") {