Test running (especially in Debug mode)

If you want to run tests in CADET-Core you need to ensure that in the CMakeSettings.json file:

  1. the “cmakeCommandArgs” contain:
    1. -DENABLE_TESTS=ON to enable building the test runner
    2. -DENABLE_STATIC_LINK_LAPACK=ON -DENABLE_STATIC_LINK_DEPS=ON to create statically linked dependencies
  2. "variables" contains:
  {
    "name": "HDF5_USE_STATIC_LIBRARIES",
    "value": "1",
    "type": "STRING"
  },
  {
    "name": "BUILD_SHARED_LIBS",
    "value": "0",
    "type": "STRING"
  },

Then you can find the testRunner(.exe) in CADET-root/build/test/Debug or CADET-root/build/test/Release

If the breakpoints aren’t catching:

check the files in build\src\libcadet and place breakpoints in those.